1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#ifndef _REMOTECONSOLE_H_
#define _REMOTECONSOLE_H_
#include "console.h"
#include "LSMSocket.h"
#include "SocketLoop.h"
/*!
\class ARemoteConsoleServer
\brief server console
*/
class ARemoteConsoleServer : public ConsoleWindow {
protected:
CSocketLoop *m_SockLp ;
static CSocketLoop *s_SockLp ;
protected:
void Gathering() ; //!< gather data from client, Gathering has to be call from time to time
public:
ARemoteConsoleServer() ;
ARemoteConsoleServer(CSocketLoop *SockLp) ;
~ARemoteConsoleServer() ;
static void setSocketLoop(CSocketLoop *SockLp) ;
} ;
/********************************************************************************/
/* class CRemoteConsoleClient */
/* */
/* Description: */
/* client console */
/********************************************************************************/
class CRemoteConsoleClient : public ConsoleWindow {
protected:
CShakeSocket *m_Sock ;
protected:
virtual void UpdateCon() ;
void UpdateCon(char *buf) ;
public:
CRemoteConsoleClient() ;
CRemoteConsoleClient(CShakeSocket *Sock) ;
~CRemoteConsoleClient() ;
void setAsConsole() ;
void connectTo(CShakeSocket *Sock) ;
CShakeSocket *getSocket() ;
} ;
#endif
|