mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 17:38:54 +02:00
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user