Commit Graph

1462 Commits

Author SHA1 Message Date
Christopher Kohlhoff
194f50f14c Merge branch 'master' of github.com:chriskohlhoff/asio 2011-02-17 10:39:15 +11:00
Christopher Kohlhoff
1f196228fa Fix gcc build when using -mthumb with a pre-armv7 architecture. 2011-02-17 10:36:30 +11:00
Christopher Kohlhoff
ef5665bf44 Regenerate documentation. 2011-02-15 18:36:55 +11:00
Christopher Kohlhoff
db062c59c2 Add signal_set to reference index page. 2011-02-15 18:36:37 +11:00
Christopher Kohlhoff
0aaae50518 Need full reactor header for signal_set headers to compile
standalone.
2011-02-15 18:11:16 +11:00
Christopher Kohlhoff
53ba85ee47 Don't enable std::error_code by default on MSVC10, as the
std::system_error::what() function does not work correctly.
2011-02-15 17:55:02 +11:00
Christopher Kohlhoff
5fbd31b456 Add a new class, asio::signal_set, for signal handling.
signals.
2011-02-15 17:11:44 +11:00
Christopher Kohlhoff
aad3a31b6d Fix function name in comment for asio::placeholders::iterator. 2011-02-15 16:49:38 +11:00
Christopher Kohlhoff
a50b53864f Fix bug on kqueue-based platforms, where reactor read operations that
return false from their perform() function are not correctly
re-registered with kqueue.
2011-02-15 16:45:00 +11:00
Christopher Kohlhoff
c65bd0fd02 Ensure asio::streambuf's internal pointers are updated correctly after
the data has been modified using std::streambuf member functions.
2011-02-15 16:17:36 +11:00
Christopher Kohlhoff
ff90fcadd2 asio version 1.5.0 released 2011-02-15 16:17:36 +11:00
Christopher Kohlhoff
ddcef20407 Fix up native_non_blocking() example and change it to be a complete
working example of wrapping Linux's sendfile system call.
2011-02-15 16:17:35 +11:00
Christopher Kohlhoff
98522be78c Add configure detection for boost 1.45.0. 2011-02-15 16:17:35 +11:00
Christopher Kohlhoff
f85e583ba3 Add history for 1.5.0. 2011-02-15 16:17:35 +11:00
Christopher Kohlhoff
1f022f467f Add note about separate compilation of SSL support. 2011-02-15 16:17:35 +11:00
Christopher Kohlhoff
016c56d856 Add missing asio/ssl/impl directory to boostify. 2011-02-15 16:17:35 +11:00
Christopher Kohlhoff
fa9f8e39f2 Fix up boostification of root asio.hpp header to match the one that is
included with boost.
2011-02-15 16:17:35 +11:00
Christopher Kohlhoff
8ed74d073e Include docs as part of boostify. 2011-02-15 16:17:35 +11:00
Christopher Kohlhoff
5fe7bb35f2 Revert last change as it doesn't help. 2011-02-15 16:17:35 +11:00
Christopher Kohlhoff
c6a7c25dd4 Try a fix for compiling with Apple Xcode's gcc 4.2.1. 2011-02-15 16:17:35 +11:00
Christopher Kohlhoff
9b1c1237c6 Move ssl error category to a new error.hpp header in the asio/ssl
directory. Change the ssl error category to return error strings from
the OpenSSL library.
2011-02-15 16:17:34 +11:00
Christopher Kohlhoff
ac3ed64d38 Assume that any descriptors or sockets added using assign() may have
been dup()-ed, and so require explicit deregistration from the reactor.
2011-02-15 16:17:34 +11:00
Christopher Kohlhoff
a579c9b4c4 Add ComposedConnectHandler type requirements. Update and regenerate
documentation.
2011-02-15 16:17:33 +11:00
Christopher Kohlhoff
fd2ce8220d Add new io_service::stopped() function that can be used to determine
whether the io_service has stopped (i.e. a reset() call is needed
prior to any further calls to run(), run_one(), poll() or poll_one().
2011-02-15 16:17:33 +11:00
Christopher Kohlhoff
82ef1d3cf4 Updated requirements to use get_io_service() rather than the now removed
io_service() member function.
2011-02-15 16:17:33 +11:00
Christopher Kohlhoff
99279af951 Constrain the connect() and async_connect() function templates to
working with basic_socket<> instances.
2011-02-15 16:17:33 +11:00
Christopher Kohlhoff
d47a33dc65 Document SeqPacketSocketService type requirements. 2011-02-15 16:17:33 +11:00
Christopher Kohlhoff
ed62d29a67 Add support for sequenced packet sockets (SOCK_SEQPACKET). 2011-02-15 16:17:33 +11:00
Christopher Kohlhoff
39b6482b6b Fix tests to use get_io_service() rather than deprecated function name
io_service().
2011-02-15 16:17:33 +11:00
Christopher Kohlhoff
661936baae Be vague about the arguments to sendfile(), since it varies from
platform to platform.
2011-02-15 16:17:33 +11:00
Christopher Kohlhoff
bb59cbc8ad Fix g++ -Wshadow warnings. 2011-02-15 16:17:33 +11:00
Christopher Kohlhoff
fa0d94ba5b Fix warning due to insufficient braces. 2011-02-15 16:17:33 +11:00
Christopher Kohlhoff
7a17ac1483 Add new non_blocking() and native_non_blocking() functions for managing
the non-blocking behaviour of sockets and descriptors. The io_control
commands named non_blocking_io are now deprecated.
2011-02-15 16:17:33 +11:00
Christopher Kohlhoff
f7635a5461 Add release() member function to posix descriptors. 2011-02-15 16:17:33 +11:00
Christopher Kohlhoff
f916c5d43b For consistency with the C++0x standard library, deprecated the
native_type typedefs in favour of native_handle_type, and the
native() member functions in favour of native_handle().
2011-02-15 16:17:32 +11:00
Christopher Kohlhoff
7afff4618f Fix comment. 2011-02-15 16:17:32 +11:00
Christopher Kohlhoff
31c7b406bd Add io_control() member function to acceptor. 2011-02-15 16:17:32 +11:00
Christopher Kohlhoff
4e8129d660 Add test stubs for basic_raw_socket and raw_socket_service. 2011-02-15 16:17:32 +11:00
Christopher Kohlhoff
22ecfe77a3 Merge missing part of basic_deadline_timer::cancel_one() change to fix windows build. 2011-02-08 20:06:09 +11:00
Christopher Kohlhoff
25ae08ddba Reset function isn't there. 2011-02-08 20:05:17 +11:00
Christopher Kohlhoff
96b0b6eb11 Don't use auto_ptr in win_thread. 2011-02-08 20:02:24 +11:00
Christopher Kohlhoff
145a36e061 Add new non-throwing overloads of read, read_at, write and write_at that
do not require a completion_condition argument.
2011-02-08 19:13:14 +11:00
Christopher Kohlhoff
37ed4c8c44 Extend the buffer_size() function so that it works for buffer sequences
in addition to individual buffers.

Add a new buffer_copy() function that can be used to copy the raw bytes
between individual buffers and buffer sequences.
2011-02-08 19:02:15 +11:00
Christopher Kohlhoff
548ce5c9a4 Use BOOST_ASSERT rather than assert. 2011-02-08 18:56:51 +11:00
Christopher Kohlhoff
9690ae5014 Explicitly cast FIONBIO constant to int to suppress compiler warning on
some platforms.
2011-02-08 18:52:58 +11:00
Christopher Kohlhoff
b3206af5f2 Provide friendlier compiler errors when the wrong handler signature is used. 2011-02-08 18:51:24 +11:00
Christopher Kohlhoff
066e739628 Add new free functions connect() and async_connect(). These try
each endpoint in a list until the socket is successfully connected.
2011-02-08 18:28:12 +11:00
Christopher Kohlhoff
f8d583bbb5 Minimise copying of handler function objects. Use move construction when
available.
2011-02-08 18:09:58 +11:00
Christopher Kohlhoff
f57386e3bb Add new iostream-based http_client to the list of examples. 2011-02-08 18:02:04 +11:00
Christopher Kohlhoff
b041fd21a1 Fix variable name that was botched due to search/replace. 2011-02-08 17:54:09 +11:00