GSource* g_datagram_based_create_source ( GDatagramBased* datagram_based, GIOCondition condition, GCancellable* cancellable )
GSource that can be attached to a
GMainContext to monitor for
the availability of the specified
condition on the
GSource keeps a reference to the
The callback on the source is of the
It is meaningless to specify
conditions will always be reported in the callback if they are true.
cancellable can be used to cancel the source, which will
cause the source to trigger, reporting the current condition (which is
likely 0 unless cancellation happened at the same time as a condition
change). You can check for this in the callback using g_cancellable_is_cancelled().
Available since: 2.48
A newly allocated
|The caller of the method takes ownership of the data, and is responsible for freeing it.|