| 9 |
|
public: |
| 10 |
|
// constructor |
| 11 |
|
SubNet(string host, int port); |
| 12 |
< |
SubNet(); |
| 13 |
< |
string sendTCP(string text); |
| 14 |
< |
void sendUPDPacket( string host, int port, string message ); |
| 15 |
< |
string getIPfromHost(string hostname); |
| 16 |
< |
string getHostName(); |
| 17 |
< |
string getHostIP(); |
| 18 |
< |
int isConnected(); |
| 12 |
> |
SubNet(); // no arg constructor |
| 13 |
> |
~SubNet(); // destructor |
| 14 |
> |
string sendTCP(string text); |
| 15 |
> |
void sendUPDPacket( string host, int port, string message ); |
| 16 |
> |
int isConnected(); |
| 17 |
|
|
| 18 |
|
private: |
| 19 |
|
int connect; |
| 20 |
|
iosockinet * socket; // TCP socket |
| 21 |
< |
osockinet * udp; // UDP socket |
| 24 |
< |
|
| 25 |
< |
|
| 26 |
< |
|
| 27 |
< |
|
| 21 |
> |
osockinet * udp; // UDP socket |
| 22 |
|
}; // class |