Skip to content
  • Philip Withnall's avatar
    agent: Add support for GIO-style I/O streams · 949f979a
    Philip Withnall authored and Olivier Crête's avatar Olivier Crête committed
    This adds three new classes:
     • NiceIOStream
     • NiceInputStream
     • NiceOutputStream
    which allow wrapping a single stream/component pair in an I/O stream
    which can be used with the standard GIO functions.
    
    The streams are constructed as wrappers around a NiceAgent, with changes
    to the NiceAgent’s properties affecting all instantiated streams.
    Streams are only supported for reliable connections.
    
    If the NiceAgent stream which underlies a NiceInputStream,
    NiceOutputStream or NiceIOStream is removed, the I/O stream is marked as
    closed.
    
    This is based on work originally done by Youness Alaoui
    <youness.alaoui@collabora.co.uk>.
    949f979a