Using Boost.Asio to get "the whole packet"
Posted
by wowus
on Stack Overflow
See other posts from Stack Overflow
or by wowus
Published on 2010-06-06T16:54:56Z
Indexed on
2010/06/06
17:02 UTC
Read the original article
Hit count: 270
I have a TCP client connecting to my server which is sending raw data packets. How, using Boost.Asio, can I get the "whole" packet every time (asynchronously, of course)? Assume these packets can be any size up to the full size of my memory.
Basically, I want to avoid creating a statically sized buffer.
© Stack Overflow or respective owner