Source.addUnixFd

Monitors fd for the IO events in events. The tag returned by this function can be used to remove or modify the monitoring of the fd using g_source_remove_unix_fd() or g_source_modify_unix_fd(). It is not necessary to remove the fd before destroying the source; it will be cleaned up automatically. As the name suggests, this function is not available on Windows. Since 2.36

class Source
void*
addUnixFd

Parameters

fd int

the fd to monitor

events GIOCondition

an event mask

Return Value

Type: void*

an opaque tag

Meta