Message.connectNetworkEvent

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.

class Message
ulong
connectNetworkEvent
(
T
)
(,
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
)

Parameters

callback T

signal 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)

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID