// Definition of the ClientSocket class

#ifndef ClientSocket_class
#define ClientSocket_class

#include "../lib/Socket.h"
#include "../lib/SocketException.h"

class ClientSocket : public Socket {
	public:
	
		ClientSocket ( std::string host, int port );
		virtual ~ClientSocket(){};
		
		const ClientSocket& operator << ( const std::string& ) const;
		const ClientSocket& operator >> ( std::string& ) const;
		void send(std::string s);
		std::string recv(std::string s);
		bool send ( char[1] ) const;
		int recv ( char &c ) const;


// 		void set_non_blocking(bool b);

		void close ();

};


#endif
