Message.connectNetworkEvent

gulong connectNetworkEvent(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gio.types.SocketClientEvent))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.iostream.IOStream))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : soup.message.Message))) && Parameters!T.length < 4)

Connect to NetworkEvent signal.

Emitted to indicate that some network-related event related to msg has occurred.

This essentially proxies the [gio.socket_client.SocketClient.event] signal, but only for events that occur while msg "owns" the connection; if msg is sent on an existing persistent connection, then this signal will not be emitted. (If you want to force the message to be sent on a new connection, set the [soup.types.MessageFlags.NewConnection] flag on it.)

See [gio.socket_client.SocketClient.event] for more information on what the different values of event correspond to, and what connection will be in each case.

Parameters

callbacksignal callback delegate or function to connect void callback(gio.types.SocketClientEvent event, gio.iostream.IOStream connection, soup.message.Message message) event the network event (optional) connection the current state of the network connection (optional) message the instance the signal is connected to (optional)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID