#include <MPNLBase.h>
Inheritance diagram for MPNL::MTCPClient:
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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
return false to reject the connection
Implements MPNL::MPNLBase. Reimplemented in mdfs::MDFSTCPClient. |
|
Implements MPNL::MPNLBase. Reimplemented in mdfs::MDFSTCPClient, and MPNL::MTransferTCPClient. |
|
|
|
Send a msg, see SetMode return system's 'send' return value |
|
|
|
Implements MPNL::MPNLBase. |
|
Implements MPNL::MPNLBase. |
|
Implements MPNL::MPNLBase. |
|
|