[ 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.
pollable_stream |
the stream associated with the new source |
the new SocketSource. |