6.16 GDatagramBasedSourceFunc

Callback: GDatagramBasedSourceFunc

A procedure given for it is called as (procedure datagram-based condition) ⇒ %return. If the function that it is given to has no user data for it, it is also passed data, last.

This is the function type of the callback used for the <GSource> returned by datagram-based:create-source.

datagram-based

Passed: a <GDatagramBased>.

the <GDatagramBased>

condition

Passed: a <GIOCondition>.

the current condition at the source fired

%return

Returned: a boolean.

G_SOURCE_REMOVE if the source should be removed, G_SOURCE_CONTINUE otherwise

data

Not passed: it is the user data that guile-gi supplied.

data passed in by the user