aboutsummaryrefslogtreecommitdiff
path: root/libsylph/socket.h
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-05-31 09:48:17 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-05-31 09:48:17 +0000
commite2af0838c3e99517f3f611f46e70d2a8e9560d7f (patch)
tree077d938d6a8fdbd575ea7fd2284af3133dc7fcc0 /libsylph/socket.h
parent23551f3f4289951a1ca6093eab152700dd0e9d21 (diff)
differentiate DNS lookup error from connection errors.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3081 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/socket.h')
-rw-r--r--libsylph/socket.h12
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);