sockpp
Modern C++ socket library wrapper
Typedefs
tcp_acceptor.h File Reference

Class for a TCP server to accept incoming connections. More...

#include "sockpp/acceptor.h"
#include "sockpp/tcp_socket.h"

Go to the source code of this file.

Typedefs

using sockpp::tcp_acceptor = acceptor_tmpl< tcp_socket >
 Class for creating a TCP server. More...
 

Detailed Description

Class for a TCP server to accept incoming connections.

Author
Frank Pagliughi
SoRo Systems, Inc.
www.sorosys.com
Date
December 2014

Typedef Documentation

◆ tcp_acceptor

using sockpp::tcp_acceptor = typedef acceptor_tmpl<tcp_socket>

Class for creating a TCP server.

Objects of this class bind and listen on TCP ports for incoming connections. Normally, a server thread creates one of these and blocks on the call to accept incoming connections. The call to accept creates and returns a tcp_socket which can then be used for the actual communications.