Gio.SocketClient::event (original) (raw)

Signal

GioSocketClient::event

since: 2.32

Declaration


void
event (
  GSocketClient* self,
  GSocketClientEvent event,
  GSocketConnectable* connectable,
  GIOStream* connection,
  gpointer user_data
)

Description [src]

Emitted when client‘s activity on connectable changes state. Among other things, this can be used to provide progress information about a network connection in the UI. The meanings of the different event values are as follows:

Each event except G_SOCKET_CLIENT_COMPLETE may be emitted multiple times (or not at all) for a given connectable (in particular, if client ends up attempting to connect to more than one address). However, if client emits the GSocketClient::eventsignal at all for a given connectable, then it will always emit it with G_SOCKET_CLIENT_COMPLETE when it is done.

Note that there may be additional GSocketClientEvent values in the future; unrecognized event values should be ignored.

Default handler: The default handler is called after the handlers added via g_signal_connect().
Available since: 2.32

Parameters

event

Type: GSocketClientEvent

The event that is occurring.

connectable

Type: GSocketConnectable

The GSocketConnectable that event is occurring on.

The data is owned by the caller of the function.

connection

Type: GIOStream

The current representation of the connection.

The argument can be NULL.
The data is owned by the caller of the function.