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 6339803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:43:02+00:00 2026-05-24T19:43:02+00:00

I recently began working with Boost Asio. I noticed that the receive method of

  • 0

I recently began working with Boost Asio. I noticed that the receive method of a TCP socket accepts a message_flags as a parameter. However, the documentation I found for message_flags only says that it is an integer without specifying the valid values. What are the values that can be assigned to a message_flags and what do they mean?

  • 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-24T19:43:04+00:00Added an answer on May 24, 2026 at 7:43 pm

    I searched for a while and finally tried to look in Boost’s source code. I found this in socket_base.hpp:

      /// Bitmask type for flags that can be passed to send and receive operations.
      typedef int message_flags;
    
      #if defined(GENERATING_DOCUMENTATION)
      /// Peek at incoming data without removing it from the input queue.
      static const int message_peek = implementation_defined;
    
      /// Process out-of-band data.
      static const int message_out_of_band = implementation_defined;
    
      /// Specify that the data should not be subject to routing.
      static const int message_do_not_route = implementation_defined;
    
      /// Specifies that the data marks the end of a record.
      static const int message_end_of_record = implementation_defined;
      #else
      BOOST_ASIO_STATIC_CONSTANT(int,
          message_peek = BOOST_ASIO_OS_DEF(MSG_PEEK));
      BOOST_ASIO_STATIC_CONSTANT(int,
          message_out_of_band = BOOST_ASIO_OS_DEF(MSG_OOB));
      BOOST_ASIO_STATIC_CONSTANT(int,
          message_do_not_route = BOOST_ASIO_OS_DEF(MSG_DONTROUTE));
      BOOST_ASIO_STATIC_CONSTANT(int,
          message_end_of_record = BOOST_ASIO_OS_DEF(MSG_EOR));
      #endif
    

    Based on this, it looks like message_peek, message_out_of_band, and message_do_not_route are the possible values. I’m going to give these a try and see if I can get them to work.

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

Sidebar

Related Questions

I recently began working on a large project that contains a huge number of
I've recently began working through a C++ Gui Programming with Qt 4 book. However,
I recently began profiling an osgi java application that I am writing using VisualVM.
I've recently began using dTrace and have noticed just how awesome it is. Its
I've began working with asp.net mvc very recently and I've ran into a problem.
I'm currently working on an OpenGL game, and recently began refactoring it to support
I recently began doing facebook application development. But it seems that the information out
I've recently began on working on my first CORBA project. I think I got
I just recently began in C# development, and I was working on a forms-based
I recently began working with Threads and I am trying to complete a Java

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.