Some more TcpClient stuff
[cascardo/gnio.git] / gnio / gsocket.h
index 34254d4..d28244c 100644 (file)
@@ -27,8 +27,7 @@
 #include <glib-object.h>
 #include <gio/gio.h>
 
-#include "ginetaddress.h"
-#include "gsocketaddress.h"
+#include <gnio/gsocketaddress.h>
 
 G_BEGIN_DECLS
 
@@ -71,7 +70,10 @@ typedef enum
 
 GType            g_socket_get_type           (void) G_GNUC_CONST;
 
-GSocket *        g_socket_new                (GSocketDomain domain, GSocketType type, const gchar *protocol, GError **error);
+GSocket *        g_socket_new                (GSocketDomain   domain,
+                                              GSocketType     type,
+                                              const gchar    *protocol,
+                                              GError        **error);
 
 GSocket *        g_socket_new_from_fd        (gint fd);
 
@@ -84,6 +86,11 @@ void             g_socket_set_blocking       (GSocket  *socket,
 
 gboolean         g_socket_get_blocking       (GSocket  *socket);
 
+void             g_socket_set_reuse_address  (GSocket  *socket,
+                                              gboolean  reuse);
+
+gboolean         g_socket_get_reuse_address  (GSocket  *socket);
+
 gboolean         g_socket_bind               (GSocket         *socket,
                                               GSocketAddress  *address,
                                               GError         **error);