00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef SSCLNT_H
00010 #define SSCLNT_H
00011
00012 #include <string>
00013 #include "ComPlusPlus/SocketTcp.h"
00014
00015 namespace compp {
00016 class SClnt {
00017
00018 public:
00019 SClnt( const std::string & IPAddr, const int port );
00020 SClnt( );
00021 bool Connect( const std::string & IPAddr, const int port );
00022 bool disConnect( );
00023 virtual ~SClnt( );
00024
00025 std::string requestTransaction ( const std::string & request, const bool cyphered = false ) ;
00026
00027 protected:
00028
00029 compp::SocketTcp S;
00030
00031 };
00032 }
00033
00034 #endif
00035
00036