00001 /////////////////////////////////////////////////////////////////////////////////////////////// 00002 /*! \file ClientSocket.h 00003 * \brief Definition of the ClientSocket class for communicating to a server program. 00004 * 00005 * The socket communications classes are based on the tutorial entitled 00006 * "Linux Socket Programming In C++" by Rob Tougher on the Linux Gazette 00007 * website. ( http://linuxgazette.net/issue74/tougher.html ) 00008 * 00009 * \author Scott A. Kowalchuk 00010 * \date 2006/11/29 00011 *///////////////////////////////////////////////////////////////////////////////////////////// 00012 /* 00013 * \Status 00014 * 00015 * 00016 */ 00017 ///////////////////////////////////////////////////////////////////////////////////////////// 00018 00019 00020 #ifndef __ClientSocket_H__ 00021 #define __ClientSocket_H__ 00022 00023 #include "Socket.h" 00024 00025 00026 class ClientSocket : private Socket 00027 { 00028 public: 00029 00030 ClientSocket ( ); 00031 ClientSocket( std::string host, int port ); 00032 virtual ~ClientSocket( ); 00033 00034 void Connect( std::string host, int port ); 00035 const ClientSocket& operator << ( const std::string& ) const; 00036 const ClientSocket& operator >> ( std::string& ) const; 00037 00038 }; 00039 00040 00041 #endif 00042