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

MPNL::MTCPClient Class Reference

#include <MPNLBase.h>

Inheritance diagram for MPNL::MTCPClient:

MPNL::MPNLBase mdfs::MDFSTCPClient MPNL::MTransferTCPClient List of all members.

Public Member Functions

 MTCPClient ()
virtual ~MTCPClient ()
bool Connect ()
void Disconnect ()
int Send (const std::string &msg)
unsigned long SendStream ()
bool Read (std::string &msg)
bool OnConnection (MSocket *s)
 return false to reject the connection

void OnDisconnection (MSocket *s)
bool IsConnected ()
void SetMode (MMode m)
void SetPrefixLen (int len)
virtual void SetStream (std::iostream *s)
std::string GetLocalIP ()

Public Attributes

std::string Host

Constructor & Destructor Documentation

MPNL::MTCPClient::MTCPClient  ) 

virtual MPNL::MTCPClient::~MTCPClient  )  [virtual]

Member Function Documentation

bool MPNL::MTCPClient::Connect  ) 

void MPNL::MTCPClient::Disconnect  ) 

std::string MPNL::MTCPClient::GetLocalIP  )  [inline]

bool MPNL::MTCPClient::IsConnected  )  [inline]

bool MPNL::MTCPClient::OnConnection MSocket s  )  [virtual]

return false to reject the connection

Implements MPNL::MPNLBase.

Reimplemented in mdfs::MDFSTCPClient.

void MPNL::MTCPClient::OnDisconnection MSocket s  )  [virtual]

Implements MPNL::MPNLBase.

Reimplemented in mdfs::MDFSTCPClient, and MPNL::MTransferTCPClient.

bool MPNL::MTCPClient::Read std::string &  msg  ) 

int MPNL::MTCPClient::Send const std::string &  msg  ) 

Send a msg, see SetMode return system's 'send' return value

unsigned long MPNL::MTCPClient::SendStream  ) 

void MPNL::MTCPClient::SetMode MMode  m  )  [inline, virtual]

Implements MPNL::MPNLBase.

void MPNL::MTCPClient::SetPrefixLen int  len  )  [virtual]

Implements MPNL::MPNLBase.

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

Implements MPNL::MPNLBase.

Member Data Documentation

std::string MPNL::MTCPClient::Host

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

MDFS SourceForge project page and download Logo

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