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?
Share
I searched for a while and finally tried to look in Boost’s source code. I found this in socket_base.hpp:
Based on this, it looks like
message_peek,message_out_of_band, andmessage_do_not_routeare the possible values. I’m going to give these a try and see if I can get them to work.