createSource
open override fun createSource(condition: <Error class: unknown class>, cancellable: Cancellable?): <Error class: unknown class>
Creates a #GSource that can be attached to a %GMainContext to monitor for the availability of the specified @condition on the socket. The #GSource keeps a reference to the @socket.
The callback on the source is of the #GSocketSourceFunc type.
It is meaningless to specify %G_IO_ERR or %G_IO_HUP in @condition; these conditions will always be reported output if they are true.
Return
a newly allocated %GSource, free with g_source_unref().
Since
2.22
Parameters
condition
a #GIOCondition mask to monitor
cancellable
a %GCancellable or null