# | Line 1 | Line 1 | |
---|---|---|
1 | #include <iostream> | |
2 | #include <string> | |
3 | #include "socket++-1.10/sockinet.h" | |
4 | + | #include "SubNet.h" |
5 | ||
6 | using std::string; | |
7 | ||
# | Line 20 | Line 21 | class SmallNet { | |
21 | // misc stuff | |
22 | void sendUPDPacket( string host, int port, string message ); | |
23 | string getIPfromHost(string hostname); | |
24 | + | string getHostName(); |
25 | + | string getHostIP(); |
26 | private: | |
27 | ||
28 | int debug; // print debug info? | |
29 | iosockinet * socket; // TCP socket | |
30 | + | SubNet * ssocket; // TCP/UDP Socket |
31 | ||
32 | ||
33 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |