Gio.SocketService::incoming
connect('incoming', function (socketService, connection: Gio.SocketConnection, source_object: GObject.Object, ): Boolean);
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.
Since 2.22
- socketService
instance of Gio.SocketService that is emitting the signal
- connection
a new Gio.SocketConnection object
- source_object
the source_object passed to Gio.SocketListener.prototype.add_address
- Returns
true to stop other handlers from being called