--- projects/cms/source/host/c++/SmallNet.h 2001/02/26 14:42:43 1.2 +++ projects/cms/source/host/c++/SmallNet.h 2001/02/26 14:55:34 1.3 @@ -1,6 +1,6 @@ #include #include -#include "libnet/net_util.h" +#include "socket++-1.10/sockinet.h" using std::string; @@ -8,18 +8,24 @@ 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); private: - + + int debug; // print debug info? + iosockinet * socket; // TCP socket + + + + }; // class \ No newline at end of file