ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/c++/SmallNet.h
(Generate patch)

Comparing projects/cms/source/host/c++/SmallNet.h (file contents):
Revision 1.1 by ab11, Wed Jan 24 19:33:23 2001 UTC vs.
Revision 1.3 by ab11, Mon Feb 26 14:55:34 2001 UTC

# Line 1 | Line 1
1   #include <iostream>
2   #include <string>
3 < #include "libnet/net_util.h"
3 > #include "socket++-1.10/sockinet.h"
4  
5   using std::string;
6  
# Line 8 | Line 8 | class SmallNet {
8          
9      public:
10          // constructor
11 <        SmallNet();
11 >        SmallNet(int printDebug);
12          // heartbeat section
13          int connectHeartBeat(string host, int port);
14          string heartBeatSend(string text);
15          void closeHeartBeatConnection();      
16          // config section
17 <        int connectConfig();
17 >        int connectConfig(string host,int port);
18          string configSend(string text);
19          void closeConfigConnection();
20          // misc stuff      
21 <        void sendUDPPacket(string xml);
21 >        void sendUPDPacket( string host, int port, string message );
22          string getIPfromHost(string hostname);
23      private:
24 <        
24 >        
25 >        int debug;              // print debug info?
26 >        iosockinet * socket;    // TCP socket
27 >        
28 >        
29 >        
30 >                
31   }; // class

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines