#include <MDFSTCPClientBase.h>
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 |
| MServer * | Server |
| Contains Host, Port and Msg. | |
Friends | |
| class | MServer |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
In descendant classes Read() must call DFS->OnClientMsg().
|
|
|
You must add the necessary length prefix to msg in descendant classes See AddLenPrefix from NetMsgUtils.h |
|
|
|
|
|
|
|
|
Contains Host, Port and Msg.
|
1.3.5