agent: Add support for GIO-style I/O streams
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Thu, 21 Jan 2010 03:51:45 +0000 (22:51 -0500)
committerOlivier Crête <olivier.crete@collabora.com>
Fri, 31 Jan 2014 06:48:59 +0000 (01:48 -0500)
commit949f979a98498d8ceab2a70696f1dbdc9ab96b7f
tree8fce1b6ce9cff42c84268dd4dd47fca21ba3d97e
parent3724af1a0258ba9e9a455cfb3eec65e41ab907fd
agent: Add support for GIO-style I/O streams

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>.
12 files changed:
agent/Makefile.am
agent/agent.h
agent/inputstream.c [new file with mode: 0644]
agent/inputstream.h [new file with mode: 0644]
agent/iostream.c [new file with mode: 0644]
agent/iostream.h [new file with mode: 0644]
agent/outputstream.c [new file with mode: 0644]
agent/outputstream.h [new file with mode: 0644]
docs/reference/libnice/Makefile.am
docs/reference/libnice/libnice-docs.sgml
docs/reference/libnice/libnice-sections.txt
nice/libnice.sym