SocketSourceFunc


Description:

[ CCode ( instance_pos = 2.9 ) ]
[ Version ( since = "2.22" ) ]
public delegate bool SocketSourceFunc (Socket socket, IOCondition condition)

This is the function type of the callback used for the SocketSource returned by create_source.

Parameters:

socket

the Socket

condition

the current condition at the source fired.

data

data passed in by the user.

Returns:

it should return false if the source should be removed.


Namespace: GLib
Package: gio-2.0