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

mdfs::MDFSTCPClientBase Class Reference

#include <MDFSTCPClientBase.h>

List of all members.

Public Member Functions

 MDFSTCPClientBase (MServer *s, MDistributedFS *dfs)
virtual ~MDFSTCPClientBase ()
virtual bool IsConnected ()=0
virtual bool Connect (int timeout)=0
virtual bool Read ()=0
 In descendant classes Read() must call DFS->OnClientMsg().

virtual void Send (const std::string &msg)=0

Protected Attributes

MDistributedFS * DFS
 Contains Host, Port and Msg.


class MServer

Constructor & Destructor Documentation

mdfs::MDFSTCPClientBase::MDFSTCPClientBase MServer s,
MDistributedFS *  dfs

virtual mdfs::MDFSTCPClientBase::~MDFSTCPClientBase  )  [inline, virtual]

Member Function Documentation

virtual bool mdfs::MDFSTCPClientBase::Connect int  timeout  )  [pure virtual]

virtual bool mdfs::MDFSTCPClientBase::IsConnected  )  [pure virtual]

virtual bool mdfs::MDFSTCPClientBase::Read  )  [pure virtual]

In descendant classes Read() must call DFS->OnClientMsg().

virtual void mdfs::MDFSTCPClientBase::Send const std::string &  msg  )  [pure virtual]

You must add the necessary length prefix to msg in descendant classes See AddLenPrefix from NetMsgUtils.h

Friends And Related Function Documentation

friend class MServer [friend]

Member Data Documentation

MDistributedFS* mdfs::MDFSTCPClientBase::DFS [protected]

MServer* mdfs::MDFSTCPClientBase::Server [protected]

Contains Host, Port and Msg.

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