|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLNET::CBufNetBase Class ReferenceLayer 1.
More...
#include <buf_net_base.h>
Inheritance diagram for NLNET::CBufNetBase:
List of all members.
Detailed Description
Layer 1.
Base class for CBufClient and CBufServer. The max block sizes for sending and receiving are controlled by setMaxSentBlockSize() and setMaxExpectedBlockSize(). Their default value is the maximum number contained in a sint32, that is 2^31-1 (i.e. 0x7FFFFFFF). The limit for sending is checked only in debug mode.
-
Author:
-
Nevrax France
-
Date:
-
2001
Definition at line 73 of file buf_net_base.h.
Member Enumeration Documentation
enum NLNET::CBufNetBase::TEventType
|
|
|
Type of incoming events (max 256).
-
Enumeration values:
-
User |
|
Connection |
|
Disconnection |
|
Definition at line 78 of file buf_net_base.h. |
Constructor & Destructor Documentation
virtual NLNET::CBufNetBase::~CBufNetBase |
( |
|
) |
[inline, virtual] |
|
NLNET::CBufNetBase::CBufNetBase |
( |
|
) |
[protected] |
|
Member Function Documentation
void* NLNET::CBufNetBase::argOfDisconnectionCallback |
( |
|
) |
const [inline, protected] |
|
volatile bool NLNET::CBufNetBase::dataAvailableFlag |
( |
|
) |
const [inline, protected] |
|
TNetCallback NLNET::CBufNetBase::disconnectionCallback |
( |
|
) |
const [inline, protected] |
|
uint32 NLNET::CBufNetBase::getReceiveQueueSize |
( |
|
) |
[inline] |
|
uint32 NLNET::CBufNetBase::maxExpectedBlockSize |
( |
|
) |
const [inline] |
|
uint32 NLNET::CBufNetBase::maxSentBlockSize |
( |
|
) |
const [inline] |
|
void NLNET::CBufNetBase::pushMessageIntoReceiveQueue |
( |
const uint8 * |
buffer, |
|
|
uint32 |
size |
|
) |
[inline, protected] |
|
void NLNET::CBufNetBase::pushMessageIntoReceiveQueue |
( |
const std::vector< uint8 > & |
buffer |
) |
[inline, protected] |
|
void NLNET::CBufNetBase::setDataAvailableFlag |
( |
bool |
da |
) |
[inline, protected] |
|
void NLNET::CBufNetBase::setDisconnectionCallback |
( |
TNetCallback |
cb, |
|
|
void * |
arg |
|
) |
[inline] |
|
void NLNET::CBufNetBase::setMaxExpectedBlockSize |
( |
sint32 |
limit |
) |
[inline] |
|
|
Sets the max size of the received messages.
Default value: 2^31-1 (0x7FFFFFF) (which is the very maximum !). If you put a negative number as limit, the max size is reset to the default value. Warning: you can call this method only at initialization time, before connecting (for a client) or calling init() (for a server) !
Definition at line 100 of file buf_net_base.h.
References _MaxExpectedBlockSize. |
void NLNET::CBufNetBase::setMaxSentBlockSize |
( |
sint32 |
limit |
) |
[inline] |
|
|
Sets the max size of the sent messages.
Default value: 2^31-1 (0x7FFFFFF) (which is the very maximum !). If you put a negative number as limit, the max size is reset to the default value. Warning: you can call this method only at initialization time, before connecting (for a client) or calling init() (for a server) !
Definition at line 115 of file buf_net_base.h.
References _MaxSentBlockSize. |
Friends And Related Function Documentation
friend class NLNET::CBufSock [friend]
|
|
Member Data Documentation
volatile bool NLNET::CBufNetBase::_DataAvailable [private]
|
|
TNetCallback NLNET::CBufNetBase::_DisconnectionCallback [private]
|
|
void* NLNET::CBufNetBase::_DisconnectionCbArg [private]
|
|
uint32 NLNET::CBufNetBase::_MaxExpectedBlockSize [private]
|
|
uint32 NLNET::CBufNetBase::_MaxSentBlockSize [private]
|
|
The documentation for this class was generated from the following files:
|
|