1. 31 Jan, 2014 4 commits
    • Philip Withnall's avatar
      agent: Add a nice_agent_recv_nonblocking() function · 6d3a32a0
      Philip Withnall authored
      This is a non-blocking variant of nice_agent_recv(), and will be used
      internally by the GPollableInputStream implementation. External
      implementations may use it as well.
      
      It reserves the right to iterate the main context, but doesn’t currently
      do so.
      6d3a32a0
    • 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
  2. 20 Nov, 2013 1 commit
  3. 05 Feb, 2013 2 commits
  4. 02 Feb, 2013 2 commits
  5. 03 Dec, 2012 1 commit
  6. 23 Aug, 2010 1 commit
  7. 16 Feb, 2010 2 commits
  8. 04 Nov, 2009 1 commit
  9. 28 Jul, 2009 1 commit
  10. 27 Mar, 2009 1 commit
  11. 02 Mar, 2009 1 commit
  12. 14 Jan, 2009 1 commit
  13. 04 Nov, 2008 1 commit
  14. 03 Nov, 2008 1 commit
  15. 30 Oct, 2008 1 commit
  16. 29 Oct, 2008 1 commit
  17. 23 Oct, 2008 1 commit
  18. 07 Oct, 2008 1 commit
  19. 20 Sep, 2008 1 commit
  20. 18 Sep, 2008 1 commit
  21. 09 Sep, 2008 1 commit
  22. 30 Jul, 2008 1 commit
  23. 02 May, 2008 1 commit
  24. 26 Apr, 2008 1 commit
  25. 25 Apr, 2008 1 commit
  26. 22 Apr, 2008 1 commit
  27. 11 Sep, 2007 1 commit
  28. 30 Aug, 2007 2 commits
  29. 17 Jul, 2007 1 commit
  30. 19 Jun, 2007 1 commit