45 #ifndef __sockpp_unix_acceptor_h 46 #define __sockpp_unix_acceptor_h 114 #endif // __sockpp_unix_acceptor_h Class for a TCP server to accept incoming connections.
Class for creating a Unix-domain server.
Definition: unix_acceptor.h:62
unix_address address() const
Gets the local address to which we are bound.
Definition: unix_acceptor.h:88
unix_acceptor(const unix_address &addr, int queSize=DFLT_QUE_SIZE)
Creates a acceptor and starts it listening on the specified address.
Definition: unix_acceptor.h:81
sock_address_any address() const
Gets the local address to which the socket is bound.
stream_socket accept(sock_address *clientAddr=nullptr)
Accepts an incoming TCP connection and gets the address of the client.
static const int DFLT_QUE_SIZE
The default listener queue size.
Definition: acceptor.h:74
Class (typedef) for Unix-domain streaming socket.
Class that represents a UNIX domain address.
Definition: unix_address.h:65
unix_acceptor()
Creates an unconnected acceptor.
Definition: unix_acceptor.h:75
Class for creating a streaming server.
Definition: acceptor.h:63
bool open(const sock_address &addr, int queSize=DFLT_QUE_SIZE, bool reuseSock=true)
Opens the acceptor socket, binds it to the specified address, and starts listening.
acceptor()
Creates an unconnected acceptor.
Definition: acceptor.h:92
Definition: acceptor.h:51
bool open(const unix_address &addr, int queSize=DFLT_QUE_SIZE)
Opens the acceptor socket and binds it to the specified address.
Definition: unix_acceptor.h:99
Base class for socket objects.
Definition: socket.h:84
Template for creating specific stream types (IPv4, IPv6, etc).
Definition: stream_socket.h:245
unix_socket accept()
Accepts an incoming UNIX connection and gets the address of the client.
Definition: unix_acceptor.h:107