[Bug 31029] convenience function to listen on an arbitrary Unix socket

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 14 14:44:41 CET 2010


https://bugs.freedesktop.org/show_bug.cgi?id=31029

Simon McVittie <simon.mcvittie at collabora.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch

--- Comment #4 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2010-12-14 05:44:40 PST ---
The need to clean up the temporary directory meant I wanted a better cleanup
function, so I encapsulated the "listening thing" as a mini-object. We now have
this API:

typedef struct _TpUnixListener TpUnixListener;
TpUnixListener *tp_unix_listener_new (const gchar *hint,
    GSocketType type, GError **error);
GSocket *tp_unix_listener_get_socket (TpUnixListener *self);
/* really returns a GUnixSocketAddress, transfer none */
GSocketAddress *tp_unix_listener_get_address (TpUnixListener *self);
const gchar *tp_unix_listener_get_path (TpUnixListener *self, gsize *len);
void tp_unix_listener_free (TpUnixListener *self);

A non-NULL TpUnixListener can only be created on Unix.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the telepathy-bugs mailing list