TcpServerOptions Class Reference

#include <Pt/Net/TcpServer.h>

TCP server listen options.

Public Member Functions

 TcpServerOptions (int backlog=5)
 Creates options with accept backlog backlog.
 TcpServerOptions (const TcpServerOptions &opts)
 Copies the options.
 ~TcpServerOptions ()
 Destroys the options.
TcpServerOptionsoperator= (const TcpServerOptions &opts)
 Assigns the options.
int acceptDeferred () const
 Returns the deferred-accept timeout in seconds, or -1 if unset.
void setDeferAccept (int n)
 Sets deferred accept to wait at most n seconds for data.
int backlog () const
 Returns the accept backlog size.
void setBacklog (int backlog)
 Sets the accept backlog size.