|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLNET::CTcpSock Class ReferenceCTcpSock: Reliable socket via TCP.
More...
#include <tcp_sock.h>
Inheritance diagram for NLNET::CTcpSock:
List of all members.
Detailed Description
CTcpSock: Reliable socket via TCP.
See base class CSock.
When to set No Delay mode on ? Set TCP_NODELAY (call setNoDelay(true)) *only* if you have to send small buffers that need to be sent *immediately*. It should only be set for applications that send frequent small bursts of information without getting an immediate response, where timely delivery of data is required (the canonical example is mouse movements). Setting TCP_NODELAY on increases the network traffic (more overhead). In the normal behavior of CSock, TCP_NODELAY is off i.e. the Nagle buffering algorithm is enabled.
-
Author:
-
Olivier Cado , Nevrax France
-
Date:
-
2000-2001
Definition at line 51 of file tcp_sock.h.
Constructor & Destructor Documentation
NLNET::CTcpSock::CTcpSock |
( |
bool |
logging = true |
) |
|
|
NLNET::CTcpSock::CTcpSock |
( |
SOCKET |
sock, |
|
|
const CInetAddress & |
remoteaddr |
|
) |
|
|
|
Construct a CTcpSock object using an already connected socket descriptor and its associated remote address.
Definition at line 69 of file tcp_sock.cpp. |
Member Function Documentation
void NLNET::CTcpSock::connect |
( |
const CInetAddress & |
addr |
) |
[virtual] |
|
void NLNET::CTcpSock::connectWithCustomWindowSize |
( |
const CInetAddress & |
addr, |
|
|
int |
windowsize |
|
) |
|
|
void NLNET::CTcpSock::disconnect |
( |
|
) |
[virtual] |
|
uint32 NLNET::CTcpSock::getWindowSize |
( |
|
) |
|
|
void NLNET::CTcpSock::setNoDelay |
( |
bool |
value |
) |
[virtual] |
|
void NLNET::CTcpSock::shutdownReceiving |
( |
|
) |
|
|
void NLNET::CTcpSock::shutdownSending |
( |
|
) |
|
|
The documentation for this class was generated from the following files:
|
|