PollableSource


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.28" ) ]
public PollableSource (Object pollable_stream)

Utility method for PollableInputStream and PollableOutputStream implementations.

Creates a new SocketSource that expects a callback of type PollableSourceFunc. The new source does not actually do anything on its own; use add_child_source to add other sources to it to cause it to trigger.

Parameters:

pollable_stream

the stream associated with the new source

Returns:

the new SocketSource.




2022 vala-language.org