#include <MPNLBase.h>
Inheritance diagram for MPNL::MTCPServer:
Public Member Functions | |
MTCPServer () | |
virtual | ~MTCPServer () |
void | operator() () |
bool | Listen () |
bool | Read (MSocket *&s) |
void | Disconnect (MSocket *s) |
virtual bool | OnConnection (MSocket *s) |
return false to reject the connection | |
virtual void | OnDisconnection (MSocket *s) |
virtual void | SetMode (MMode m) |
virtual void | SetPrefixLen (int len) |
virtual void | SetStream (std::iostream *s) |
virtual void | Stop () |
void | GetStats (MStats &s) |
void | BroadcastMsg (const std::string &msg) |
int | Send (const std::string &ip, const std::string &msg) |
bool | IsConnected (const std::string &ip) |
int | NbClients () |
MClientList * | LockClients () |
* Commented just to see if used somewhere :) | |
void | UnlockClients () |
Protected Attributes | |
boost::mutex | ClientMutex |
MStats | Stats |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Commented just to see if used somewhere :)
|
|
|
|
return false to reject the connection
Implements MPNL::MPNLBase. Reimplemented in mdfs::MDFSTCPServer, and MPNL::MTransferTCPServer. |
|
Implements MPNL::MPNLBase. Reimplemented in mdfs::MDFSTCPServer, and MPNL::MTransferTCPServer. |
|
Implements MThread. |
|
|
|
|
|
Implements MPNL::MPNLBase. |
|
Implements MPNL::MPNLBase. |
|
Implements MPNL::MPNLBase. |
|
Reimplemented from MThread. |
|
|
|
|
|
|