Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3351732
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:56:39+00:00 2026-05-18T01:56:39+00:00

cpp_netlib docs contains example HTTP client , but I see it works only in

  • 0

cpp_netlib docs contains example HTTP client, but I see it works only in blocking mode:

http_client::response response = client.get(request);

— this (as I guess) will stop program execution while waiting for server’s response. Can I perform multiple concurrent requests with cpp_netlib without spawning multiple threads? I mean a non-blocking manner, something like cyclical calling of io_service.poll() and using callback handlers to catch responses – and also some additional processing while waiting for response(s).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T01:56:40+00:00Added an answer on May 18, 2026 at 1:56 am

    It is possible to handle asynchronous connections in non-blocking manner using a typedef with an asynchronous tag:

    typedef boost::network::http::basic_client<
      boost::network::http::tags::http_async_8bit_udp_resolve
      , 1, 0> http_client;
    

    But currently there’s no ability to implement full-featured concurrent connections handling, with callbacks and cyclical checking for requests completion. Not with current 0.7 version of the library, and not with next 0.8. Maybe, these features will be implemented in cpp_netlib 0.9.

    For more details, look at cpp_netlib mailing list archieve: http://sourceforge.net/mailarchive/message.php?msg_name=AANLkTingb%2BB06YVyK%3D-XYAcZsQ2sZc%3DE%3DTPhAgcfjrTb%40mail.gmail.com

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Dev-cpp comes with an example program Jackpot, which has a GetResults function in it:
Suppose I have files a.cpp and b.cpp and I get warnings in a.cpp and
I have the ActiveMQ-CPP 2.2.1 Visual Studio 2005 project compiling and running. In the
I created a program using dev-cpp and wxwidgets which solves a puzzle. The user
Why does C++ have header files and .cpp files?
Consider the following code // BOGP.cpp : Defines the entry point for the console
I want to call a few static methods of a CPP class defined in
C++ guarantees that variables in a compilation unit (.cpp file) are initialised in order
I've been getting this undefined symbol building with this command line: $ gcc test.cpp
Right now I have the following in my .vimrc : au BufWritePost *.c,*.cpp,*.h !ctags

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.