TcpSocketOptions Class Reference

#include <Pt/Net/TcpSocket.h>

TCP socket connection options.

Public Member Functions

 TcpSocketOptions ()
 Creates default options.
 TcpSocketOptions (const TcpSocketOptions &opts)
 Copies the options.
 ~TcpSocketOptions ()
 Destroys the options.
TcpSocketOptionsoperator= (const TcpSocketOptions &opts)
 Assigns the options.
int keepAlive () const
 Returns the keep-alive interval in seconds, or a negative value if unset.
void setKeepAlive (int n)
 Sets the keep-alive interval in seconds.

Member Function Documentation

◆ setKeepAlive()

void setKeepAlive ( int n)

A negative value leaves keep-alive unset.