UnixUtils.fdSourceNew

Creates a glib.Source to watch for a particular IO condition on a file descriptor.

The source will never close the fd -- you must do it yourself.

struct UnixUtils
static
fdSourceNew

Parameters

fd int

a file descriptor

condition GIOCondition

IO conditions to watch for on fd

Return Value

Type: Source

the newly created glib.Source

Meta

Since

2.36