asio 0.3.7 Home | Reference | Tutorial | Examples | Design

asio C++ library

asio is a cross-platform C++ library for network programming that provides developers with a consistent asynchronous I/O model using a modern C++ approach.

License

asio is released under the Boost Software License.

Dependencies

asio requires Boost version 1.33 or later. There is no need to build any of the Boost libraries to use most of Boost.Asio, and only the header files are required. However, some overloads of read_until and async_read_until require the Boost.Regex library. (Note: with MSVC or Borland C++ you may need to add -DBOOST_ALL_NO_LIB to your project settings to disable autolinking of the Boost.Date_Time and Boost.Regex libraries.)

To use asio's SSL support, OpenSSL is required. OpenSSL is not necessary to use the rest of asio.

Using asio

asio consists only of header files, and so there is no need to build any libraries before using asio in your own applications. You simply need to add the following directories to your compiler include path:

  • asio's include directory
  • the boost directory (e.g. the one called boost_1_33_0)

Supported Platforms

asio supports the following platforms and compilers:

  • Win32 using Visual C++ 7.1 and Visual C++ 8.0.
  • Win32 using Borland C++Builder 6 patch 4.
  • Win32 using MinGW.
  • Win32 using Cygwin. (__USE_W32_SOCKETS must be defined.)
  • Linux (2.4 or 2.6 kernels) using g++ 3.3 or later.
  • Solaris using g++ 3.3 or later.
  • Mac OS X 10.4 using g++ 3.3 or later.
  • QNX Neutrino 6.3 using g++ 3.3 or later.

asio 0.3.7 Home | Reference | Tutorial | Examples | Design