Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MPNL::MPNLBase Class Reference

#include <MPNLBase.h>

Inheritance diagram for MPNL::MPNLBase:

MPNL::MTCPClient MPNL::MTCPServer MPNL::MUDPClient MPNL::MUDPServer mdfs::MDFSTCPClient MPNL::MTransferTCPClient mdfs::MDFSTCPServer MPNL::MTransferTCPServer List of all members.

Public Member Functions

 MPNLBase ()
virtual ~MPNLBase ()
virtual void SetMode (MMode m)=0
virtual void SetPrefixLen (int len)=0
virtual void SetStream (std::iostream *s)=0
virtual bool OnConnection (MSocket *s)=0
 return false to reject the connection

virtual void OnDisconnection (MSocket *s)=0
virtual void PushMsg (MSocket *)
void SetLastError (const std::string &a)
std::string GetLastError ()

Public Attributes

int Port

Protected Types

typedef std::deque< MSocket * > MMsgQueue

Protected Attributes

MMsgQueue Messages
MMode Mode
int PrefixLen

Member Typedef Documentation

typedef std::deque<MSocket*> MPNL::MPNLBase::MMsgQueue [protected]
 


Constructor & Destructor Documentation

MPNL::MPNLBase::MPNLBase  ) 
 

virtual MPNL::MPNLBase::~MPNLBase  )  [virtual]
 


Member Function Documentation

std::string MPNL::MPNLBase::GetLastError  )  [inline]
 

virtual bool MPNL::MPNLBase::OnConnection MSocket s  )  [pure virtual]
 

return false to reject the connection

Implemented in mdfs::MDFSTCPClient, mdfs::MDFSTCPServer, MPNL::MTCPServer, MPNL::MTCPClient, and MPNL::MTransferTCPServer.

virtual void MPNL::MPNLBase::OnDisconnection MSocket s  )  [pure virtual]
 

Implemented in mdfs::MDFSTCPClient, mdfs::MDFSTCPServer, MPNL::MTCPServer, MPNL::MTCPClient, MPNL::MTransferTCPServer, and MPNL::MTransferTCPClient.

virtual void MPNL::MPNLBase::PushMsg MSocket  )  [inline, virtual]
 

void MPNL::MPNLBase::SetLastError const std::string &  a  )  [inline]
 

virtual void MPNL::MPNLBase::SetMode MMode  m  )  [pure virtual]
 

Implemented in MPNL::MTCPServer, MPNL::MTCPClient, MPNL::MUDPServer, and MPNL::MUDPClient.

virtual void MPNL::MPNLBase::SetPrefixLen int  len  )  [pure virtual]
 

Implemented in MPNL::MTCPServer, and MPNL::MTCPClient.

virtual void MPNL::MPNLBase::SetStream std::iostream *  s  )  [pure virtual]
 

Implemented in MPNL::MTCPServer, and MPNL::MTCPClient.


Member Data Documentation

MMsgQueue MPNL::MPNLBase::Messages [protected]
 

MMode MPNL::MPNLBase::Mode [protected]
 

int MPNL::MPNLBase::Port
 

int MPNL::MPNLBase::PrefixLen [protected]
 


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


MDFS SourceForge project page and download

SourceForge.net Logo

Generated on Sat Jan 3 03:14:20 2004 for MDFS by doxygen1.3.5