SocketSourceFunc

typealias SocketSourceFunc = (socket: Socket) -> Boolean

This is the function type of the callback used for the #GSource returned by g_socket_create_source().

  • param socket the #GSocket

  • return it should return false if the source should be removed.