21 #ifndef G_REQUEST_CLIENT_H
22 #define G_REQUEST_CLIENT_H
48 RequestClient(
const std::string & key ,
const std::string & ok ,
const std::string & eol ,
49 const GNet::ResolverInfo & host_and_service ,
unsigned int connect_timeout ,
unsigned int response_timeout ) ;
55 void request(
const std::string & ) ;
76 virtual bool onReceive(
const std::string & ) ;
82 virtual void onDelete(
const std::string & ,
bool ) ;
85 virtual void onDeleteImp(
const std::string & ,
bool ) ;
88 virtual void onSecure(
const std::string & ) ;
96 std::string requestLine(
const std::string & )
const ;
97 std::string result( std::string )
const ;
103 std::string m_request ;
SMTP and message-store classes.
RequestClient(const std::string &key, const std::string &ok, const std::string &eol, const GNet::ResolverInfo &host_and_service, unsigned int connect_timeout, unsigned int response_timeout)
Constructor.
virtual void onDeleteImp(const std::string &, bool)
Final override from GNet::Client.
A class that holds a host/service name pair and optionally the results of a name-to-address lookup...
virtual void onConnect()
Final override from GNet::SimpleClient.
virtual ~RequestClient()
Destructor.
virtual void onDelete(const std::string &, bool)
Final override from GNet::HeapClient.
virtual void onSendComplete()
Final override from GNet::BufferedClient.
virtual void onSecure(const std::string &)
Final override from GNet::SocketProtocolSink.
#define G_EXCEPTION(class_name, description)
define as a function rather than a type if optimising for size
virtual bool onReceive(const std::string &)
Final override from GNet::Client.
void request(const std::string &)
Issues a request.
bool busy() const
Returns true after request() and before the subsequent event signal.
A timer class template in which the timeout is delivered to the specified method. ...
A HeapClient class that adds slot/signal signalling, connection/response timeouts, and input line buffering.
A client class that interacts with a remote process with a stateless line-based request/response prot...