connectIncoming
fun connectIncoming(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (connection: SocketConnection, <Error class: unknown class>?) -> Boolean): <Error class: unknown class>
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.
Since
2.22
Parameters
connectFlags
A combination of ConnectFlags
handler
the Callback to connect. Params: connection
a new #GSocketConnection object; sourceObject
the source_object passed to g_socket_listener_add_address(). Returns true to stop other handlers from being called