GSocketClient: add a timeout property

GSocket has a timeout flag now, but when using GSocketClient there was
no way to set the timeout until after connecting (or failing). Fix
that by adding a timeout property to GSocketClient.
This commit is contained in:
Dan Winship
2010-08-14 15:04:24 -04:00
parent 28a4fff7ec
commit 16bafb4799
3 changed files with 76 additions and 1 deletions

View File

@@ -82,6 +82,9 @@ void g_socket_client_set_protocol (GSocket
GSocketAddress *g_socket_client_get_local_address (GSocketClient *client);
void g_socket_client_set_local_address (GSocketClient *client,
GSocketAddress *address);
guint g_socket_client_get_timeout (GSocketClient *client);
void g_socket_client_set_timeout (GSocketClient *client,
guint timeout);
GSocketConnection * g_socket_client_connect (GSocketClient *client,
GSocketConnectable *connectable,