|
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 (int fd) override |
| method called when data are ready to be read/accepted on handle. | |
| virtual void | onClose (int fd) override |
| method called when handle is closed. | |
| virtual void | onError (int fd) override |
| method called when an error occured on handle. | |
| virtual int | handle () const noexcept |
| 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. | |
| EventHandler (const EventHandler &other)=default | |
| copy constructor. | |
| EventHandler & | operator= (const EventHandler &other)=default |
| copy assignment operator. | |
| EventHandler (EventHandler &&other)=default | |
| move constructor. | |
| EventHandler & | operator= (EventHandler &&other)=default |
| move assignment operator. | |
| virtual | ~EventHandler ()=default |
| destroy instance. | |
Class used to test Reactor.
|
inlineprotectedvirtualnoexcept |
get native handle.
|
inlineoverrideprotectedvirtual |
method called when handle is closed.
| fd | file descriptor. |
Reimplemented from join::EventHandler.
|
inlineoverrideprotectedvirtual |
method called when an error occured on handle.
| fd | file descriptor. |
Reimplemented from join::EventHandler.
|
inlineoverrideprotectedvirtual |
method called when data are ready to be read/accepted on handle.
| fd | file descriptor. |
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.