ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/c++/SmallNet.h
Revision: 1.1
Committed: Wed Jan 24 19:33:23 2001 UTC (23 years, 10 months ago) by ab11
Content type: text/plain
Branch: MAIN
Log Message:
Skeleton class for Networking (header)

File Contents

# User Rev Content
1 ab11 1.1 #include <iostream>
2     #include <string>
3     #include "libnet/net_util.h"
4    
5     using std::string;
6    
7     class SmallNet {
8    
9     public:
10     // constructor
11     SmallNet();
12     // heartbeat section
13     int connectHeartBeat(string host, int port);
14     string heartBeatSend(string text);
15     void closeHeartBeatConnection();
16     // config section
17     int connectConfig();
18     string configSend(string text);
19     void closeConfigConnection();
20     // misc stuff
21     void sendUDPPacket(string xml);
22     string getIPfromHost(string hostname);
23     private:
24    
25     }; // class