add_io_watch


Description:


public unowned TimeoutSource add_io_watch (MainContext? async_context, IOChannel chan, IOCondition condition, IOFunc function)

Adds an I/O watch as with add_watch, but using the given async_context.

Parameters:

async_context

the MainContext to dispatch the I/O watch in, or null for the default context

chan

the IOChannel to watch

condition

the condition to watch for

function

the callback to invoke when condition occurs

data

user data to pass to function

Returns:

a SocketSource, which can be removed from async_context with destroy .


Namespace: Soup
Package: libsoup-2.4



2022 vala-language.org