SocketSourceFunc
typealias SocketSourceFunc = (socket: Socket, <Error class: unknown class>, <Error class: unknown class>?) -> Boolean
This is the function type of the callback used for the #GSource returned by g_socket_create_source().
param
socket
the #GSocketparam
condition
the current condition at the source fired.param
data
data passed in by the user.return it should return false if the source should be removed.