Very Simple Cross-Platform Library
|
#include <TCPServerSocket.h>
Public Member Functions | |
TCPServerSocket (unsigned short port, Waiter *waiter=nullptr) | |
TCPAcceptor & | getAcceptor () |
A server socket that provides a TCP access point.
Definition at line 44 of file TCPServerSocket.h.
hu::varadiistvan::scpl::io::TCPServerSocket::TCPServerSocket | ( | unsigned short | port, |
Waiter * | waiter = nullptr |
||
) |
Construct the server socket to listen at the given port.
port | the number of the port to listen at |
waiter | the waiter to use for waiting a possible event occuring on the socket. If given, the socket will be non-blocking. Otherwise, it will be blocking, and the accept() function of the Acceptor might block. |
TCPAcceptor& hu::varadiistvan::scpl::io::TCPServerSocket::getAcceptor | ( | ) |
Get the acceptor