1. 31 May, 2019 1 commit
    • Sebastian Dröge's avatar
      Clamp number of vectors to IOV_MAX / UIO_MAXIOV for GOutputStream writev()... · 20a2c379
      Sebastian Dröge authored
      Clamp number of vectors to IOV_MAX / UIO_MAXIOV for GOutputStream writev() calls in the implementations
      
      More vectors will give an error and we can simply clamp here and
      consider it like a short write instead.
      
      In case of GSocketOutputStream this is done here instead of inside
      GSocket before calling sendmsg() because we we can't generically handle
      short writes when sending messages on a socket, e.g. for datagram
      sockets this causes only part of the datagram to be sent and an error
      would be more useful in this case than sending corrupted data.
      
      Also reduce the fallback limit to 16 in gsocket.c as that's the minimum
      value required by POSIX and add a static assertion that the limit is
      never bigger than G_MAXINT as that's the type recvmmsg/sendmmsg take.
      20a2c379
  2. 24 Jan, 2019 1 commit
  3. 29 May, 2017 1 commit
  4. 31 Jan, 2014 1 commit
  5. 24 Jun, 2013 2 commits
  6. 10 Oct, 2012 1 commit
  7. 17 Apr, 2012 1 commit
    • Dan Winship's avatar
      gio: use GPollable* to implement fallback read_async/write_async · 00ee06e6
      Dan Winship authored
      If a GInputStream does not provide a read_async() implementation, but
      does implement GPollableInputStream, then instead of doing
      read-synchronously-in-a-thread, just use
      g_pollable_input_stream_read_nonblocking() and
      g_pollable_input_stream_create_source() to implement an async read in
      the same thread. Similarly for GOutputStream.
      
      Remove a bunch of existing read_async()/write_async() implementations
      that are basically equivalent to the new fallback method.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=673997
      00ee06e6
  8. 22 Nov, 2011 1 commit
  9. 09 Nov, 2011 1 commit
  10. 26 Nov, 2010 1 commit
    • Dan Winship's avatar
      Add pollable input/output streams · c20c2c0a
      Dan Winship authored
      When interfacing with APIs that expect unix-style async I/O, it is
      useful to be able to tell in advance whether a read/write is going to
      block. This adds new interfaces GPollableInputStream and
      GPollableOutputStream that can be implemented by a GInputStream or
      GOutputStream to add _is_readable/_is_writable, _create_source, and
      _read_nonblocking/_write_nonblocking methods.
      
      Also, implement for GUnixInput/OutputStream and
      GSocketInput/OutputStream
      
      https://bugzilla.gnome.org/show_bug.cgi?id=634241
      c20c2c0a
  11. 03 Nov, 2010 1 commit
  12. 15 Aug, 2010 1 commit
  13. 07 Jul, 2010 1 commit
  14. 22 Jun, 2010 1 commit
  15. 01 Jul, 2009 1 commit
  16. 30 Jun, 2009 1 commit
    • Dan Winship's avatar
      Add GCancellables to GSocket ops · 53beca95
      Dan Winship authored
      Currently, to implement cancellability correctly, all synchronous
      calls to GSocket must be preceded by a g_socket_condition_wait() call,
      (even though GSocket does this internally as well) and all
      asynchronous calls must do occasional manual
      g_cancellable_is_cancelled() checks. Since it's trivial to do these
      checks inside GSocket instead, and we don't particularly want to
      encourage people to use the APIs non-cancellably, move the
      cancellation support into GSocket and simplify the existing callers.
      
      http://bugzilla.gnome.org/show_bug.cgi?id=586797
      53beca95
  17. 28 May, 2009 1 commit
  18. 15 May, 2009 1 commit
  19. 27 Nov, 2007 2 commits
    • Alexander Larsson's avatar
      Removed. Removed. Added. Added. Renamed GSocket*Stream to GUnix*Stream and · 77657981
      Alexander Larsson authored
      2007-11-27  Alexander Larsson  <alexl@redhat.com>
      
              * Makefile.am:
              * gsocketinputstream.[ch]: Removed.
              * gsocketoutputstream.[ch]: Removed.
              * gunixinputstream.[ch]: Added.
              * gunixoutputstream.[ch]: Added.
      	Renamed GSocket*Stream to GUnix*Stream and made
      	it unix-only, since its not really only for sockets
      	and it only works on unix (but is highly useful there).
      
      
      
      svn path=/trunk/; revision=5956
      77657981
    • Andrew Walton's avatar
      Bumps documentation to 93% symbol coverage, touching most · 5247f12f
      Andrew Walton authored
      	of the public files. Fixes broken function documentation prototypes. 
      	Fixes GCancellable inaccuracies. Removes unnecessary incomplete 
      	gtk-doc headers in private files.
      
      svn path=/trunk/; revision=5953
      5247f12f
  20. 26 Nov, 2007 1 commit
    • Alexander Larsson's avatar
      gio/ docs/reference/gio Merged gio-standalone into glib. · 37813437
      Alexander Larsson authored
      2007-11-26  Alexander Larsson  <alexl@redhat.com>
      
              * Makefile.am:
              * configure.in:
              * gio-2.0-uninstalled.pc.in:
              * gio-2.0.pc.in: 
              * gio-unix-2.0-uninstalled.pc.in:
              * gio-unix-2.0.pc.in:
      	* gio/
      	* docs/reference/gio
      	Merged gio-standalone into glib.
      	
              * glib/glibintl.h:
              * glib/gutils.c:
      	Export glib_gettext so that gio can use it
      	Add P_ (using same domain for now)
      	Add I_ as g_intern_static_string
      
      
      svn path=/trunk/; revision=5941
      37813437