Async HTTPClientSession

A general discussion forum.
Posts: 2
Joined: 14 Jan 2013, 12:35

Async HTTPClientSession

Postby aviadr1 » 29 Apr 2013, 16:34

Hi, I'm trying to do an asynch GET using HTTPClientSession.
the usual sample code for HTTPClientSession goes something like this:

Code: Select all

   Poco::Net::HTTPClientSession session(uri.getHost(), uri.getPort());
   std::ostream& ostr = session.sendRequest(req);
   // Receive the response.
   Poco::Net::HTTPResponse res;
   std::istream& rs = session.receiveResponse(res);

the question is, how can I read from rs while making sure that the read is non-blocking?

Posts: 1375
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Async HTTPClientSession

Postby alex » 02 Jun 2013, 15:40

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests