Class for monitoring connection supporting the polling API.
More...
|
|
hash< SocketPollInfo > | sem_info |
| | Semaphore descriptor info.
|
| |
|
ReadOnlyFile | sem_read |
| | File to read in the I/O thread.
|
| |
|
File | sem_write |
| | File to signal the I/O thread.
|
| |
Class for monitoring connection supporting the polling API.
- Since
- ConnectionProvider 1.7
◆ add()
Adds a connection to be monitored.
- Parameters
-
| conn | the connection to be monitored; must support the connection polling API |
- Exceptions
-
| MONITOR-CONNECTION-ERROR | the connection does not support the connection polling API |
| MONITOR-ADD-ERROR | a different connection with this name is already being monitored |
◆ addOrUpdate()
Adds or updates an existing connection that is already being monitored.
- Parameters
-
| conn | the connection to be monitored; must support the connection polling API |
- Exceptions
-
| MONITOR-CONNECTION-ERROR | the connection does not support the connection polling API |
◆ removeConnection()
| bool ConnectionProvider::PollingConnectionMonitor::removeConnection |
( |
string |
name | ) |
|
Removes the given connection.
- Parameters
-
| name | the connection to be removed |
- Returns
- True if the connection was removed, False if no such connection is being monitored
- See also
- removeConnectionEx()
◆ removeConnectionEx()
| ConnectionProvider::PollingConnectionMonitor::removeConnectionEx |
( |
string |
name | ) |
|
Removes the given connection.
- Parameters
-
| name | the connection to be removed |
- Exceptions
-
| MONITOR-REMOVE-ERROR | thrown if the named connection is not being monitored |
- See also
- removeConnection()
◆ start()
| ConnectionProvider::PollingConnectionMonitor::start |
( |
| ) |
|
Starts monitoring.
- Exceptions
-
| MONITOR-START-ERROR | if the I/O thread is already running |