mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 04:17:55 +01:00
feat(SocketReactor): extract and expose poll() as a member function
This commit is contained in:
@@ -123,6 +123,12 @@ public:
|
||||
virtual ~SocketReactor();
|
||||
/// Destroys the SocketReactor.
|
||||
|
||||
int poll();
|
||||
/// Polls all registered sockets and calls their respective handlers.
|
||||
/// If there are no handlers, an idle notification is dispatched.
|
||||
/// If there are no readable sockets, a timeout notification is dispatched.
|
||||
/// Returns the total number of read/write/error handlers called.
|
||||
|
||||
void run();
|
||||
/// Runs the SocketReactor. The reactor will run
|
||||
/// until stop() is called (in a separate thread).
|
||||
|
||||
Reference in New Issue
Block a user