How do I get the size of the boost buffer

Posted by Anonymous on Stack Overflow See other posts from Stack Overflow or by Anonymous
Published on 2010-06-05T20:18:02Z Indexed on 2010/06/05 20:22 UTC
Read the original article Hit count: 172

Filed under:
|
|
|

I am trying to make an asynchronised server in visual studio and I use

boost::asio::async_read(m_socket, boost::asio::buffer(m_buffer), 
                        boost::bind(&tcp_connection::handle_read, shared_from_this(),
                                    boost::asio::placeholders::error));

to get the buffer to be put in m_buffer

boost::array<char, 256> m_buffer;

but how do I get the size of this thing, m_buffer?

size() didn't work, end() didn't work.. Any help would be fantastic. Thanks in advance.

© Stack Overflow or respective owner

Related posts about c++

Related posts about boost