# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLNET::CStreamClient Class Reference

Client class for layer 2. More...

#include <stream_client.h>

Inheritance diagram for NLNET::CStreamClient:

NLNET::CBufClient NLNET::CBufNetBase NLNET::CCallbackClient List of all members.

Public Methods

 CStreamClient (bool nodelay=true, bool replay=false)
 Constructor. More...

void send (const NLMISC::CMemStream &buffer)
 Sends a message to the remote host. More...

void receive (NLMISC::CMemStream &buffer)
 Receives next block of data in the specified buffer (resizes the vector). More...


Private Methods

void send (const std::vector< uint8 > &buffer)
 This function is public in the base class and we put it private here because user cannot use it in layer 2. More...

void receive (std::vector< uint8 > &buffer)
 This function is public in the base class and we put it private here because user cannot use it in layer 2. More...


Detailed Description

Client class for layer 2.

Author:
Vianney Lecroart , Nevrax France
Date:
2001

Definition at line 44 of file stream_client.h.


Constructor & Destructor Documentation

NLNET::CStreamClient::CStreamClient bool    nodelay = true,
bool    replay = false
[inline]
 

Constructor.

Definition at line 49 of file stream_client.h.

References NLNET::CBufClient::CBufClient.


Member Function Documentation

void NLNET::CStreamClient::receive std::vector< uint8 > &    buffer [inline, private]
 

This function is public in the base class and we put it private here because user cannot use it in layer 2.

Reimplemented from NLNET::CBufClient.

Definition at line 63 of file stream_client.h.

References nlstop.

void NLNET::CStreamClient::receive NLMISC::CMemStream   buffer
 

Receives next block of data in the specified buffer (resizes the vector).

Definition at line 49 of file stream_client.cpp.

References NLMISC::CMemStream::bufferAsVector, and NLMISC::CMemStream::resetBufPos.

void NLNET::CStreamClient::send const std::vector< uint8 > &    buffer [inline, private]
 

This function is public in the base class and we put it private here because user cannot use it in layer 2.

Reimplemented from NLNET::CBufClient.

Definition at line 60 of file stream_client.h.

References nlstop.

void NLNET::CStreamClient::send const NLMISC::CMemStream   buffer
 

Sends a message to the remote host.

Reimplemented in NLNET::CCallbackClient.


The documentation for this class was generated from the following files: