#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. | |
| TcpSocketOptions & | operator= (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. | |
| void setKeepAlive | ( | int | n | ) |
A negative value leaves keep-alive unset.