Gio.SocketSourceFunc

function onSocketSourceFunc(socket: Gio.Socket, condition: GLib.IOCondition): Boolean {
}
  

This is the function type of the callback used for the GLib.Source returned by Gio.Socket.create_source.

Since 2.22

socket

the Gio.Socket

condition

the current condition at the source fired.

Returns

it should return false if the source should be removed.