ThreadedSocketService.connectRun

Connect to Run signal.

The ::run signal is emitted in a worker thread in response to an incoming connection. This thread is dedicated to handling connection and may perform blocking IO. The signal handler need not return until the connection is closed.

class ThreadedSocketService
ulong
connectRun
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == bool)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] : gobject.object.ObjectG)
)
)
&&
(
Parameters!T.length < 3 ||
(
ParameterStorageClassTuple!T[2] == ParameterStorageClass.none &&
)
)
&&
Parameters!T.length < 4
)

Parameters

callback T

signal callback delegate or function to connect

bool callback(gio.socket_connection.SocketConnection connection, gobject.object.ObjectG sourceObject, gio.threaded_socket_service.ThreadedSocketService threadedSocketService)

connection a new #GSocketConnection object. (optional)

sourceObject the source_object passed to gio.socket_listener.SocketListener.addAddress. (optional)

threadedSocketService the instance the signal is connected to (optional)

Returns true to stop further signal handlers from being called

after Flag!"After"

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

Return Value

Type: ulong

Signal ID