#include <socket.hpp>
◆ Factory()
| adaptyst::TCPAcceptor::Factory::Factory |
( |
std::string | address, |
|
|
unsigned short | port, |
|
|
bool | try_subsequent_ports = false ) |
|
inline |
Constructs a TCPAcceptor::Factory object.
- Parameters
-
| address | An address where the TCP server should listen at. |
| port | A port where the TCP server should listen at. |
| try_subsequent_ports | Indicates whether subsequent ports should be tried when the initially-specified port is already in use. The potential port change will be reflected in the output of get_connection_instructions(). |
◆ get_type()
| std::string adaptyst::TCPAcceptor::Factory::get_type |
( |
| ) |
|
|
inlinevirtual |
◆ make_acceptor()
| std::unique_ptr< Acceptor > adaptyst::TCPAcceptor::Factory::make_acceptor |
( |
int | max_accepted | ) |
|
|
inlinevirtual |
Makes a new Acceptor-derived object.
- Parameters
-
| max_accepted | A maximum number of connections that the acceptor can accept during its lifetime. Use UNLIMITED_ACCEPTED for no limit. |
Implements adaptyst::Acceptor::Factory.
The documentation for this class was generated from the following file:
- /home/profiling/Adaptyst/include/adaptyst/socket.hpp