From 85b58394d7c5be33ba7d5776ea94d1fb5ed58372 Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Fri, 18 Mar 2011 12:54:17 +1100 Subject: [PATCH] Regenerate documentation. --- asio/src/doc/reference.qbk | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/asio/src/doc/reference.qbk b/asio/src/doc/reference.qbk index bbf1571c..e07f468f 100644 --- a/asio/src/doc/reference.qbk +++ b/asio/src/doc/reference.qbk @@ -43108,7 +43108,7 @@ The simplest use case involves reading or writing a single buffer of a specified In the above example, the return value of `asio::buffer` meets the requirements of the ConstBufferSequence concept so that it may be directly passed to the socket's write function. A buffer created for modifiable memory also meets the requirements of the MutableBufferSequence concept. -An individual buffer may be created from a builtin array, std::vector or boost::array of POD elements. This helps prevent buffer overruns by automatically determining the size of the buffer: +An individual buffer may be created from a builtin array, std::vector, std::array or boost::array of POD elements. This helps prevent buffer overruns by automatically determining the size of the buffer: @@ -43118,8 +43118,11 @@ An individual buffer may be created from a builtin array, std::vector or boost:: std::vector d2(128); bytes_transferred = sock.receive(asio::buffer(d2)); - boost::array d3; - bytes_transferred = sock.receive(asio::buffer(d3)); + std::array d3; + bytes_transferred = sock.receive(asio::buffer(d3)); + + boost::array d4; + bytes_transferred = sock.receive(asio::buffer(d4)); @@ -83196,8 +83199,8 @@ The stream class template provides asynchronous and blocking stream-oriented fun To use the SSL stream template with an `ip::tcp::socket`, you would write: asio::io_service io_service; - asio::ssl::context context(io_service, asio::ssl::context::sslv23); - asio::ssl::stream sock(io_service, context); + asio::ssl::context ctx(asio::ssl::context::sslv23); + asio::ssl::stream sock(io_service, ctx); @@ -83936,7 +83939,7 @@ This constructor creates a stream and initialises the underlying stream object. [[arg][The argument to be passed to initialise the underlying stream.]] -[[context][The SSL context to be used for the stream. ]] +[[ctx][The SSL context to be used for the stream. ]] ]