|
Adaptyst
A comprehensive and architecture-agnostic performance analysis tool
|
#include <socket.hpp>
Classes | |
| class | Factory |
Public Member Functions | |
| ~TCPAcceptor () | |
| std::string | get_connection_instructions () |
| std::string | get_type () |
Public Member Functions inherited from adaptyst::Acceptor | |
| std::unique_ptr< Connection > | accept (unsigned int buf_size, long timeout=NO_TIMEOUT) |
| virtual | ~Acceptor () |
Protected Member Functions | |
| std::unique_ptr< Connection > | accept_connection (unsigned int buf_size, long timeout) |
| void | close () |
Protected Member Functions inherited from adaptyst::Acceptor | |
| Acceptor (int max_accepted) | |
A class describing a TCP acceptor.
|
inline |
|
inlineprotectedvirtual |
An internal method called by accept() accepting a new connection.
It should always return the new connection, regardless of the number of connections already accepted by the object.
| buf_size | The buffer size for communication, in bytes. |
| timeout | The maximum number of seconds the acceptor will wait for to accept a connection. Afterwards, TimeoutException will be thrown. Use NO_TIMEOUT to wait indefinitely for a connection. |
Implements adaptyst::Acceptor.
|
inlineprotectedvirtual |
Closes the acceptor.
Implements adaptyst::Acceptor.
|
inlinevirtual |
Returns "<TCP server address>_<TCP server port>".
Implements adaptyst::Acceptor.
|
inlinevirtual |
Gets the string describing the connection type of the acceptor (e.g. TCP).
Implements adaptyst::Acceptor.