Function

GioSocketSourceFunc

Declaration

gboolean
(* GSocketSourceFunc) (
  GSocket* socket,
  GIOCondition condition,
  gpointer user_data
)

Description [src]

This is the function type of the callback used for the GSource returned by g_socket_create_source().

Available since:2.22

Parameters

socket GSocket
 

The GSocket.

 The data is owned by the caller of the function.
condition GIOCondition
 

The current condition at the source fired.

user_data gpointer
 

Data passed in by the user.

Return value

Returns: gboolean
 

It should return FALSE if the source should be removed.