Callbacks

FDSourceFunc (fd, condition, *user_data)

Details

GLibUnix.FDSourceFunc(fd, condition, *user_data)
Parameters:
  • fd (int) – the fd that triggered the event

  • condition (GLib.IOCondition) – the IO conditions reported on fd

  • user_data (object or None) – user data passed to g_unix_fd_add()

Returns:

False if the source should be removed

Return type:

bool

The type of functions to be called when a UNIX fd watch source triggers.