--- projects/cms/source/host/c++/SubNet.h 2001/03/05 14:02:27 1.1 +++ projects/cms/source/host/c++/SubNet.h 2002/05/21 16:47:11 1.4 @@ -1,3 +1,23 @@ +/* + * i-scream central monitoring system + * http://www.i-scream.org.uk + * Copyright (C) 2000-2002 i-scream + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + #include #include #include "socket++-1.10/sockinet.h" @@ -9,20 +29,14 @@ class SubNet { public: // constructor SubNet(string host, int port); - SubNet(); - string sendTCP(string text); - void sendUPDPacket( string host, int port, string message ); - string getIPfromHost(string hostname); - string getHostName(); - string getHostIP(); - int isConnected(); + SubNet(); // no arg constructor + ~SubNet(); // destructor + string sendTCP(string text); + void sendUPDPacket( string host, int port, string message ); + int isConnected(); private: int connect; iosockinet * socket; // TCP socket - osockinet * udp; // UDP socket - - - - + osockinet * udp; // UDP socket }; // class \ No newline at end of file