--- projects/cms/source/host/c++/SmallNet.h 2001/01/24 19:33:23 1.1 +++ projects/cms/source/host/c++/SmallNet.h 2001/03/05 12:39:43 1.4 @@ -1,6 +1,7 @@ #include #include -#include "libnet/net_util.h" +#include "socket++-1.10/sockinet.h" +#include "SubNet.h" using std::string; @@ -8,18 +9,27 @@ class SmallNet { public: // constructor - SmallNet(); + SmallNet(int printDebug); // heartbeat section int connectHeartBeat(string host, int port); string heartBeatSend(string text); void closeHeartBeatConnection(); // config section - int connectConfig(); + int connectConfig(string host,int port); string configSend(string text); void closeConfigConnection(); // misc stuff - void sendUDPPacket(string xml); + void sendUPDPacket( string host, int port, string message ); string getIPfromHost(string hostname); + string getHostName(); + string getHostIP(); private: - + + int debug; // print debug info? + iosockinet * socket; // TCP socket + SubNet * ssocket; // TCP/UDP Socket + + + + }; // class \ No newline at end of file