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


Protected Member Functions | |
| void | SetUp () override |
| Sets up the test fixture. | |
| void | TearDown () override |
| Tears down the test fixture. | |
| void | onComplete (IoOperation *op, int result) override |
| method called when an operation completes. | |
| void | onCancel (IoOperation *op, int result) override |
| method called when an operation is cancelled. | |
Protected Member Functions inherited from join::CompletionHandler | |
Static Protected Attributes | |
| static Tcp::Acceptor | _acceptor |
| server acceptor. | |
| 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 = 5001 |
| port. | |
| static const int | _timeout = 1000 |
| timeout. | |
| static Condition | _cond |
| condition variable. | |
| static Mutex | _mut |
| condition mutex. | |
| static IoOperation * | _op = nullptr |
| last completed operation. | |
| static int | _result = 0 |
| last operation result. | |
| static char | _buf [256] = {} |
| read buffer. | |
Additional Inherited Members | |
Public Member Functions inherited from join::CompletionHandler | |
| CompletionHandler ()=default | |
| create instance. | |
| CompletionHandler (const CompletionHandler &other)=default | |
| copy constructor. | |
| CompletionHandler & | operator= (const CompletionHandler &other)=default |
| copy assignment operator. | |
| CompletionHandler (CompletionHandler &&other)=default | |
| move constructor. | |
| CompletionHandler & | operator= (CompletionHandler &&other)=default |
| move assignment operator. | |
| virtual | ~CompletionHandler ()=default |
| destroy instance. | |
Class used to test SqpollProactor.
|
inlineoverrideprotectedvirtual |
method called when an operation is cancelled.
| op | cancelled operation. |
| result | negative errno. |
Reimplemented from join::CompletionHandler.
|
inlineoverrideprotectedvirtual |
method called when an operation completes.
| op | completed operation. |
| result | bytes transferred or negative errno. |
Reimplemented from join::CompletionHandler.
|
inlineoverrideprotected |
Sets up the test fixture.
|
inlineoverrideprotected |
Tears down the test fixture.
|
staticprotected |
server acceptor.
|
staticprotected |
read buffer.
|
staticprotected |
client socket.
|
staticprotected |
condition variable.
|
staticprotected |
host.
|
staticprotected |
condition mutex.
|
staticprotected |
last completed operation.
|
staticprotected |
port.
|
staticprotected |
last operation result.
|
staticprotected |
server socket.
|
staticprotected |
timeout.