Adds the IOChannel into the default main loop context with the given priority.
This internally creates a main loop source using IOSource and attaches it to the main loop context with attach. You can do these steps manually if you need greater control.
priority |
the priority of the IOChannel source |
condition |
the condition to watch for |
func |
the function to call when the condition is satisfied |
channel | |
notify |
the function to call when the source is removed |
user_data |
user data to pass to |
the event source id |