13 |
|
// heartbeat section |
14 |
|
int connectHeartBeat(string host, int port); |
15 |
|
string heartBeatSend(string text); |
16 |
< |
void closeHeartBeatConnection(); |
16 |
> |
void closeHeartBeatConnection(); |
17 |
|
// config section |
18 |
|
int connectConfig(string host,int port); |
19 |
|
string configSend(string text); |
20 |
|
void closeConfigConnection(); |
21 |
|
// misc stuff |
22 |
|
void sendUPDPacket( string host, int port, string message ); |
23 |
– |
string getIPfromHost(string hostname); |
24 |
– |
string getHostName(); |
25 |
– |
string getHostIP(); |
23 |
|
private: |
24 |
|
|
25 |
< |
int debug; // print debug info? |
25 |
> |
int debug; // print debug info? |
26 |
|
iosockinet * socket; // TCP socket |
27 |
< |
SubNet * ssocket; // TCP/UDP Socket |
28 |
< |
|
32 |
< |
|
33 |
< |
|
34 |
< |
|
27 |
> |
SubNet * ssocket; // TCP/UDP Socket |
28 |
> |
|
29 |
|
}; // class |