--- projects/cms/source/host/c++/SmallNet.h 2001/01/24 19:33:23 1.1 +++ projects/cms/source/host/c++/SmallNet.h 2001/03/27 00:05:08 1.5 @@ -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,21 @@ class SmallNet { public: // constructor - SmallNet(); + SmallNet(int printDebug); // heartbeat section int connectHeartBeat(string host, int port); string heartBeatSend(string text); - void closeHeartBeatConnection(); + void closeHeartBeatConnection(); // config section - int connectConfig(); + int connectConfig(string host,int port); string configSend(string text); void closeConfigConnection(); // misc stuff - void sendUDPPacket(string xml); - string getIPfromHost(string hostname); + void sendUPDPacket( string host, int port, string message ); private: + + int debug; // print debug info? + iosockinet * socket; // TCP socket + SubNet * ssocket; // TCP/UDP Socket }; // class \ No newline at end of file