54 explicit Client(
const ResolverInfo & remote_info ,
unsigned int connection_timeout = 0U ,
55 unsigned int response_timeout = 0U ,
unsigned int secure_connection_timeout = 0U ,
56 const std::string & eol = std::string(
"\n") ,
57 const Address & local_interface =
Address(0U) ,
bool privileged =
false ,
89 virtual bool onReceive(
const std::string & ) = 0 ;
99 virtual void onDeleteImp(
const std::string & ,
bool ) ;
116 void operator=(
const Client& ) ;
117 void onConnectionTimeout() ;
118 void onResponseTimeout() ;
125 unsigned int m_connection_timeout ;
126 unsigned int m_response_timeout ;
Client(const ResolverInfo &remote_info, unsigned int connection_timeout=0U, unsigned int response_timeout=0U, unsigned int secure_connection_timeout=0U, const std::string &eol=std::string("\n"), const Address &local_interface=Address(0U), bool privileged=false, bool sync_dns=synchronousDnsDefault())
Constructor.
std::string::size_type size_type
virtual void onSendImp()
Final override from GNet::SimpleClient.
G::Signal0 & connectedSignal()
Returns a signal that incidcates that the client has successfully connected to the server...
The Address class encapsulates an IP transport address.
G::Signal2< std::string, bool > & doneSignal()
Returns a signal that indicates that client processing is complete.
A class that holds a host/service name pair and optionally the results of a name-to-address lookup...
virtual void onDeleteImp(const std::string &, bool)
Override from GNet::HeapClient.
G::Signal2< std::string, std::string > & eventSignal()
Returns a signal that indicates that something interesting has happened.
virtual ~Client()
Destructor.
virtual void onData(const char *, SimpleClient::size_type)
Final override from GNet::SocketProtocolSink.
void clearInput()
Clears any pending input from the server.
virtual bool onReceive(const std::string &)=0
Called when a complete line is received from the peer.
A SimpleClient class for client objects that manage their own lifetime on the heap.
Part of the slot/signal system.
static bool synchronousDnsDefault()
Returns true if DNS queries should normally be synchronous on this platform.
G::Signal0 & secureSignal()
Returns a signal that incidcates that the security layer has been successfully established.
A class which does line buffering.
A timer class template in which the timeout is delivered to the specified method. ...
virtual void onConnectImp()
Final override from GNet::SimpleClient.
A HeapClient class that adds slot/signal signalling, connection/response timeouts, and input line buffering.
virtual void onConnecting()
Final override from GNet::HeapClient.