1. 31 Jan, 2014 5 commits
    • Philip Withnall's avatar
      agent: Add nice_agent_build_io_stream() API · 11f04d6c
      Philip Withnall authored
      This allows creation of a NiceIOStream from an existing NiceAgent
      instance.
      11f04d6c
    • Philip Withnall's avatar
      agent: Add support for GIO-style I/O streams · 949f979a
      Philip Withnall authored
      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
    • Philip Withnall's avatar
      agent: Add a nice_agent_send_full() API exposing error information · 5d63de5a
      Philip Withnall authored
      This adds GError and GCancellable parameters to the existing
      nice_agent_send() API, and is identical in all other respects (notably,
      it is non-blocking).
      
      The GCancellable is currently unused, but could be used in future if the
      API grows to support blocking writes.
      
      The GError is used to return more interesting error codes than just
      ‘-1’.
      5d63de5a
    • Philip Withnall's avatar
      agent: Add nice_agent_recv() allowing blocking receives on sockets · 243c47ec
      Philip Withnall authored
      This is a blocking receive function, designed to be called from a worker
      thread. It cannot be used in conjunction with the existing
      nice_agent_attach_recv() API, as the blocking receive and the GSource
      would compete over access to the single copy of the data in the kernel’s
      receive buffer.
      243c47ec
    • Olivier Crête's avatar
  2. 27 Dec, 2013 1 commit
  3. 23 Feb, 2013 1 commit
  4. 07 Feb, 2013 1 commit
  5. 05 Feb, 2013 2 commits
  6. 06 Mar, 2012 1 commit
  7. 19 Jan, 2011 1 commit
  8. 29 Sep, 2010 1 commit
  9. 16 Feb, 2010 5 commits
  10. 04 Nov, 2009 1 commit
  11. 28 Jul, 2009 1 commit
  12. 07 May, 2009 1 commit
  13. 31 Mar, 2009 1 commit
  14. 05 Mar, 2009 2 commits
  15. 02 Mar, 2009 1 commit
  16. 23 Feb, 2009 1 commit
  17. 14 Jan, 2009 1 commit
  18. 19 Dec, 2008 1 commit
  19. 13 Nov, 2008 1 commit
  20. 03 Nov, 2008 1 commit
  21. 30 Oct, 2008 2 commits