|
Connects an I/O handler.
Glib::signal_io().connect(SigC::slot(&io_handler), fd, Glib::IO_IN | Glib::IO_HUP);
is equivalent to: - Parameters:
-
slot |
A slot to call when polling fd results in an event that matches condition. The event will be passed as a parameter to slot. If io_handler ever returns true , the signal is disconnected. |
fd |
The file descriptor (or a HANDLE on Win32 systems) to watch. |
condition |
The conditions to watch for. |
priority |
The priority of the new event source. |
- Returns:
-
A connection handle, which can be used to disconnect the handler.
|