ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/c++/SmallNet.h
Revision: 1.5
Committed: Tue Mar 27 00:05:08 2001 UTC (23 years, 8 months ago) by ab11
Content type: text/plain
Branch: MAIN
CVS Tags: PROJECT_COMPLETION
Changes since 1.4: +4 -10 lines
Log Message:
tidied up

File Contents

# Content
1 #include <iostream>
2 #include <string>
3 #include "socket++-1.10/sockinet.h"
4 #include "SubNet.h"
5
6 using std::string;
7
8 class SmallNet {
9
10 public:
11 // constructor
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(string host,int port);
19 string configSend(string text);
20 void closeConfigConnection();
21 // misc stuff
22 void sendUPDPacket( string host, int port, string message );
23 private:
24
25 int debug; // print debug info?
26 iosockinet * socket; // TCP socket
27 SubNet * ssocket; // TCP/UDP Socket
28
29 }; // class