|
join 1.0
lightweight network framework library
|
Class used to test Reactor. More...


Protected Member Functions | |
| void | SetUp () override |
| Sets up the test fixture. | |
| void | TearDown () override |
| Tears down the test fixture. | |
| virtual void | onReceive () override |
| method called when data are ready to be read/accepted on handle. | |
| virtual void | onClose () override |
| method called when handle is closed. | |
| virtual void | onError () override |
| method called when an error occured on handle. | |
| virtual int | handle () const noexcept override |
| get native handle. | |
Protected Member Functions inherited from join::EventHandler | |
Static Protected Attributes | |
| static Tcp::Acceptor | _acceptor |
| server socket. | |
| static Tcp::Socket | _client |
| client socket. | |
| static Tcp::Socket | _server |
| server socket. | |
| static std::string | _host = "127.0.0.1" |
| host. | |
| static uint16_t | _port = 5000 |
| port. | |
| static const int | _timeout = 1000 |
| timeout. | |
| static Condition | _cond |
| condition variable. | |
| static Mutex | _mut |
| condition mutex. | |
| static std::string | _event |
| event. | |
Additional Inherited Members | |
Public Member Functions inherited from join::EventHandler | |
| EventHandler ()=default | |
| create instance. | |
| virtual | ~EventHandler ()=default |
| destroy instance. | |
Class used to test Reactor.
|
inlineoverrideprotectedvirtualnoexcept |
|
inlineoverrideprotectedvirtual |
method called when handle is closed.
Reimplemented from join::EventHandler.
|
inlineoverrideprotectedvirtual |
method called when an error occured on handle.
Reimplemented from join::EventHandler.
|
inlineoverrideprotectedvirtual |
method called when data are ready to be read/accepted on handle.
Reimplemented from join::EventHandler.
|
inlineoverrideprotected |
Sets up the test fixture.
|
inlineoverrideprotected |
Tears down the test fixture.
|
staticprotected |
server socket.
|
staticprotected |
client socket.
|
staticprotected |
condition variable.
|
staticprotected |
event.
|
staticprotected |
host.
|
staticprotected |
condition mutex.
|
staticprotected |
port.
|
staticprotected |
server socket.
|
staticprotected |
timeout.