SocketService.connectIncoming

Connect to Incoming signal.

The ::incoming signal is emitted when a new incoming connection to service needs to be handled. The handler must initiate the handling of connection, but may not block; in essence, asynchronous operations must be used.

connection will be unreffed once the signal handler returns, so you need to ref it yourself if you are planning to use it.

class SocketService
ulong
connectIncoming
(
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.socket_service.SocketService socketService)

connection a new #GSocketConnection object (optional)

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

socketService the instance the signal is connected to (optional)

Returns true to stop other 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