6.26 GSocketSourceFunc

Callback: GSocketSourceFunc

A procedure given for it is called as (procedure socket 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 g_socket_create_source().

socket

Passed: a <GSocket>.

the <GSocket>

condition

Passed: a <GIOCondition>.

the current condition at the source fired.

%return

Returned: a boolean.

it should return #f if the source should be removed.

data

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

data passed in by the user.