asio version 0.3.3 has been released. It may be downloaded from the
asio sourceforge page at http://asio.sourceforge.net.
In this version there has been extensive cleanup, renaming and
restructuring of the interface, aimed at improving consistency and
integration with boost. Code that uses asio will need to be updated.
The changes since asio 0.3.2 include:
- dgram_socket has been renamed to datagram_socket
- send and recv have been replaced by write and read respectively.
Functions called send and receive have been retained on the socket
classes with an additonal flags argument. On the datagram_socket,
sendto has been renamed to send_to, and recvfrom to receive_from.
- timer has been renamed to deadline_timer and redesigned to use
Boost.Date_Time classes.
- socket_connector has been dropped in favour of connect/async_connect
functions on both stream_socket and datagram_socket.
- async_get_host_by_address and async_get_host_by_name functions have
been added to ipv4::host_resolver. The implementation is simple and
only simulates asynchronicity (using one background thread
per-demuxer
to execute the corresponding blocking call).
- The ipv4::host structure has been turned into a class.
- The asio::arg namespace has been renamed to asio::placeholders. The
bytes_recvd and bytes_sent placeholders have been replaced with
bytes_transferred. Similarly, the last_bytes_recvd/sent and
total_bytes_recvd/sent have been replaced with last_bytes_transferred
and total_bytes_transferred.
- Requires Boost 1.33.
|