[go: up one dir, main page]

Menu

[r13]: / client / client.h  Maximize  Restore  History

Download this file

31 lines (22 with data), 430 Bytes

 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
#ifndef __CB_CLIENT_H__
#define __CB_CLIENT_H__
#include <gmp.h>
#include <node.h>
class Client
{
public:
Client();
Client(const int& protocol);
~Client();
public:
int connect(const string& server, const int& port);
int close();
protected:
int lookup(string filename, Node* n);
protected:
string m_strServerHost;
int m_iServerPort;
CGMP* m_pGMP;
int m_iProtocol; // 1 UDT 2 TCP
};
#endif