Overview
Features
Download
Documentation
Community
Add-Ons & Services

Async HTTPClientSession

A general discussion forum.

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?
aviadr1
 
Posts: 2
Joined: 14 Jan 2013, 12:35

Re: Async HTTPClientSession

Postby alex » 02 Jun 2013, 15:40

alex
 
Posts: 1132
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest