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.4 by ab11, Mon Mar 5 12:39:43 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 > #include "SubNet.h"
5  
6   using std::string;
7  
# Line 8 | Line 9 | class SmallNet {
9          
10      public:
11          // constructor
12 <        SmallNet();
12 >        SmallNet(int printDebug);
13          // heartbeat section
14          int connectHeartBeat(string host, int port);
15          string heartBeatSend(string text);
16          void closeHeartBeatConnection();      
17          // config section
18 <        int connectConfig();
18 >        int connectConfig(string host,int port);
19          string configSend(string text);
20          void closeConfigConnection();
21          // misc stuff      
22 <        void sendUDPPacket(string xml);
22 >        void sendUPDPacket( string host, int port, string message );
23          string getIPfromHost(string hostname);
24 +        string getHostName();
25 +        string getHostIP();
26      private:
27 <        
27 >        
28 >        int debug;              // print debug info?
29 >        iosockinet * socket;    // TCP socket
30 >        SubNet * ssocket;       // TCP/UDP Socket
31 >        
32 >        
33 >        
34 >                
35   }; // class

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines