Very Simple Cross-Platform Library
Public Member Functions | List of all members
hu::varadiistvan::scpl::io::TCPServerSocket Class Reference

#include <TCPServerSocket.h>

Public Member Functions

 TCPServerSocket (unsigned short port, Waiter *waiter=nullptr)
 
TCPAcceptorgetAcceptor ()
 

Detailed Description

A server socket that provides a TCP access point.

Definition at line 44 of file TCPServerSocket.h.

Constructor & Destructor Documentation

◆ TCPServerSocket()

hu::varadiistvan::scpl::io::TCPServerSocket::TCPServerSocket ( unsigned short  port,
Waiter waiter = nullptr 
)

Construct the server socket to listen at the given port.

Parameters
portthe number of the port to listen at
waiterthe 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.

Member Function Documentation

◆ getAcceptor()

TCPAcceptor& hu::varadiistvan::scpl::io::TCPServerSocket::getAcceptor ( )

Get the acceptor


The documentation for this class was generated from the following file: