|
|
virtual error | init ()=0 |
| |
|
virtual size_t | num_socket_managers () const noexcept=0 |
| | Returns the number of currently active socket managers.
|
| |
|
virtual middleman & | owner ()=0 |
| | Returns the owning middleman instance.
|
| |
|
virtual actor_system & | system ()=0 |
| | Returns the enclosing actor_system.
|
| |
| virtual void | start (socket_manager_ptr mgr)=0 |
| | Registers mgr for initialization in the multiplexer's thread.
|
| |
| virtual void | shutdown ()=0 |
| | Signals the multiplexer to initiate shutdown.
|
| |
|
virtual void | register_reading (socket_manager *mgr)=0 |
| | Registers mgr for read events.
|
| |
|
virtual void | register_writing (socket_manager *mgr)=0 |
| | Registers mgr for write events.
|
| |
|
virtual void | deregister_reading (socket_manager *mgr)=0 |
| | Deregisters mgr from read events.
|
| |
|
virtual void | deregister_writing (socket_manager *mgr)=0 |
| | Deregisters mgr from write events.
|
| |
|
virtual void | deregister (socket_manager *mgr)=0 |
| | Deregisters mgr from read and write events.
|
| |
|
virtual bool | is_reading (const socket_manager *mgr) const noexcept=0 |
| | Queries whether mgr is currently registered for reading.
|
| |
|
virtual bool | is_writing (const socket_manager *mgr) const noexcept=0 |
| | Queries whether mgr is currently registered for writing.
|
| |
|
virtual bool | poll_once (bool blocking)=0 |
| | Polls I/O activity once and runs all socket event handlers that become ready as a result.
|
| |
|
virtual void | apply_updates ()=0 |
| | Applies all pending updates.
|
| |
|
virtual void | set_thread_id ()=0 |
| | Sets the thread ID to std::this_thread::id().
|
| |
|
virtual void | run ()=0 |
| | Runs the multiplexer until no socket event handler remains active.
|
| |
|
virtual void | ref_execution_context () const noexcept=0 |
| | Increases the reference count of the execution_context.
|
| |
|
virtual void | deref_execution_context () const noexcept=0 |
| | Decreases the reference count of the execution context and destroys the object if necessary.
|
| |
| virtual void | schedule (action what)=0 |
| | Schedules what to run on the event loop of the execution context.
|
| |
| template<class F > |
| void | schedule_fn (F &&what) |
| | Schedules what to run on the event loop of the execution context.
|
| |
| virtual void | watch (disposable what)=0 |
| | Asks the coordinator to keep its event loop running until what becomes disposed since it depends on external events or produces events that are visible to outside observers.
|
| |
Multiplexes any number of ::socket_manager objects with a ::socket.