| Revision: | 1.2 |
| Committed: | Tue Mar 27 00:04:55 2001 UTC (24 years, 7 months ago) by ab11 |
| Content type: | text/plain |
| Branch: | MAIN |
| CVS Tags: | PROJECT_COMPLETION |
| Changes since 1.1: | +6 -12 lines |
| Log Message: | tidied up |
| # | Content |
|---|---|
| 1 | #include <iostream> |
| 2 | #include <string> |
| 3 | #include "socket++-1.10/sockinet.h" |
| 4 | |
| 5 | using std::string; |
| 6 | |
| 7 | class SubNet { |
| 8 | |
| 9 | public: |
| 10 | // constructor |
| 11 | SubNet(string host, int port); |
| 12 | SubNet(); // no arg constructor |
| 13 | ~SubNet(); // destructor |
| 14 | string sendTCP(string text); |
| 15 | void sendUPDPacket( string host, int port, string message ); |
| 16 | int isConnected(); |
| 17 | |
| 18 | private: |
| 19 | int connect; |
| 20 | iosockinet * socket; // TCP socket |
| 21 | osockinet * udp; // UDP socket |
| 22 | }; // class |