diff options
Diffstat (limited to 'libsylph/socket.h')
-rw-r--r-- | libsylph/socket.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libsylph/socket.h b/libsylph/socket.h index 64d2d6a1..9c761305 100644 --- a/libsylph/socket.h +++ b/libsylph/socket.h @@ -86,6 +86,8 @@ gint sock_cleanup (void); gint sock_set_io_timeout (guint sec); +SockInfo *sock_new (const gchar *hostname, gushort port); + gint sock_set_nonblocking_mode (SockInfo *sock, gboolean nonblock); gboolean sock_is_nonblocking_mode (SockInfo *sock); @@ -109,6 +111,16 @@ gint sock_connect_async_thread (const gchar *hostname, gushort port); gint sock_connect_async_thread_wait (gint id, SockInfo **sock); #endif +gint sock_info_connect (SockInfo *sock); +#ifdef G_OS_UNIX +gint sock_info_connect_async (SockInfo *sock, + SockConnectFunc func, gpointer data); +#endif +#if USE_THREADS +gint sock_info_connect_async_thread (SockInfo *sock); +gint sock_info_connect_async_thread_wait(gint id, SockInfo **sock); +#endif + /* Basic I/O functions */ gint sock_printf (SockInfo *sock, const gchar *format, ...) G_GNUC_PRINTF(2, 3); |