summaryrefslogtreecommitdiff
path: root/lib/gibber
AgeCommit message (Collapse)AuthorFilesLines
2010-04-06Use g_resolver_lookup_by_name instead of getaddrinfo in GibberTcpTransportSjoerd Simons2-37/+46
2010-02-22GibberTCPTransport: use gibber_socket_errno, gibber_socket_strerrorSimon McVittie3-3/+6
errno and strerror won't work on Windows. *sigh*
2010-02-22GibberListener: use gibber_socket_set_errorSimon McVittie1-27/+18
2010-02-22gibber_socket_set_error etc.: add wrappers for Winsock not returning errors ↵Simon McVittie2-0/+58
in errno
2010-02-22gibber-listener: add_listener: use gibber_io_channel_new_from_socketSimon McVittie1-1/+1
We're listening on IPv4, IPv6 or Unix here, so we know it's a socket, not some other sort of fd.
2010-02-22gibber_fd_transport_set_fd: take an is_socket parameter, and call ↵Simon McVittie6-10/+24
Winsock-compatible functions if true For the moment I'm just skipping the "non-blocking I/O" fcntl for non-sockets on Windows. In practice, this code path is never taken...
2010-02-22gibber-tcp-transport: new_connect_attempt: use gibber-sockets.h wrappersSimon McVittie1-2/+2
2010-02-22gibber_socket_set_nonblocking: wrapper for fcntl or ioctlsocket as appropriateSimon McVittie2-0/+14
2010-02-22gibber_io_channel_new_from_socket: new wrapper functionSimon McVittie2-0/+12
This should only be used if sockfd is known to be a socket.
2010-02-22gibber_connect_errno_requires_retry: wrap the difference between Winsock and ↵Simon McVittie4-1/+44
Unix errno values
2010-02-22gibber: use gibber-sockets.h instead of using most system headers directlySimon McVittie8-15/+10
One exception is in lib/gibber/gibber-unix-transport.c, which, by its very nature, only works on Unix.
2010-02-22gibber-sockets.h: new meta-header for various system socket headersSimon McVittie4-0/+126
This wouldn't be a viable approach for a real library (it requires including config.h in a header), but Gibber is just a convenience library and will remain so until we've migrated out all its code, so I think it's acceptable here. Can we have GNIO yet? :-(
2010-02-22Conditionalize inclusion of unistd.hSimon McVittie5-5/+28
2010-02-22GibberListener: stub out Unix sockets unless GIBBER_TYPE_UNIX_TRANSPORT was ↵Simon McVittie1-0/+10
built
2010-02-22GibberUnixTransport: don't build if not running on UnixSimon McVittie2-1/+11
2010-01-13fd.o #26027: gibber, loudmouth, src: remove unused rules for *-enumtypes.hSimon McVittie1-18/+0
If/when we resurrect these, we should use static pattern rules rather than implicit rules, to avoid the bug described in fd.o #26027.
2009-12-18Initialize the buffer used in a cmsg to zeroSjoerd Simons1-1/+2
Initializing the buffer the zero prevents false positives from valgrind. Also fixed a small code consistency issue
2009-12-07Remove various bits that were only used for GibberResolverSjoerd Simons3-1667/+2
2009-12-07Merge remote branch 'maiku/gresolver'Sjoerd Simons5-1551/+0
2009-11-25Document a deliberate switch fall-throughWill Thompson1-0/+1
2009-11-20Remove gibber-resolver.Mike Ruprecht5-1551/+0
2009-09-29Move from shave to automake 1.11's silent rules.Jonny Lamb1-6/+4
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2009-09-16build Gibber with fno-strict-aliasing so asyncns.c build with new gcc (fd.o ↵Guillaume Desmottes1-1/+1
#23685)
2009-09-10Merge branch 'credentials'Simon McVittie2-0/+49
Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2009-08-24fd.o #23348, fd.o #23349: fix compilation on NetBSD by including more headersThomas Klausner2-0/+3
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2009-07-28Silence generation of marshaller lists (again) as per commit 37653645b3Simon McVittie1-2/+2
2009-07-27fd.o#22968: GibberUnixTransport: make credential-passing support optional ↵Simon McVittie2-0/+49
and detectable Our implementation only works for Linux so far, so we need to be able to avoid advertising credential-passing on e.g. Darwin.
2009-06-01gibber_fd_transport_block_receiving; don't crash when trying to unblock a ↵Guillaume Desmottes1-2/+6
not yet connected transport
2009-05-15sync Gibber with SalutGuillaume Desmottes5-6/+237
2009-05-04sync gibber from SalutGuillaume Desmottes3-4/+45
2009-04-21Keep QUIET_GEN in tools/shave.mk and include that in the appropriate Makefiles.Jonny Lamb1-1/+1
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2009-04-21Converted gabble to use shave and make make output legible.Jonny Lamb1-5/+7
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2009-03-23gibber_fd_transport_send: returns an error if something went wrongGuillaume Desmottes1-9/+12
2009-03-18gibber-listener: check getsockname return valueGuillaume Desmottes1-1/+10
2009-03-10gibber_fd_transport_set_fd: don't add watcher if transport was blockedGuillaume Desmottes1-2/+9
2009-03-06gibber_tcp_transport_connect is now asyncGuillaume Desmottes1-49/+153
2009-03-03gibber-fd-transport: don't close transport when we get HUP as the buffers ↵Guillaume Desmottes1-7/+1
can be not empty
2009-03-01Correct "#ifdef ENABLE_DEBUG" and G_*_DECLS nesting.Will Thompson1-2/+2
2009-03-01Remove unused gibber macros.Will Thompson1-23/+0
Synced from Salut
2009-02-27gibber-debug.h: wrap macros in parentheses/G_STMT_START as appropriateSimon McVittie1-8/+10
This fixes compilation of non-debug builds by making "if (...) DEBUG (foo); else DEBUG (bar);" no longer provoke a warning. Also remove empty definition of NODE_DEBUG in non-debug builds (it no longer exists in debug builds).
2009-02-25lib/gibber/Makefile.am: exempt asyncns from Telepathy coding style checkSimon McVittie1-7/+9
2009-02-25Add gibbers async resolver abstractionSjoerd Simons7-0/+3216
2009-02-20Fix byte ordering of port in GibberListenerWill Thompson1-2/+2
This fixes fd.o #20102. Signed-off-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2009-01-06gibber-debug.c: build if debug is disabledGuillaume Desmottes1-0/+4
2008-12-18sync with current gibberGuillaume Desmottes2-2/+50
2008-12-15sync with gibber masterGuillaume Desmottes2-6/+6
2008-12-15Import gibber transports and listernerGuillaume Desmottes17-0/+2726