Commit Graph

1359 Commits

Author SHA1 Message Date
Christopher Kohlhoff
f4b17b0fda Implement custom memory allocation support for reactor-based asynchronous operations.
[SVN r45122]
2008-05-05 06:30:13 +00:00
Christopher Kohlhoff
09272f1402 Add fast-pathing of speculative reads and writes to the kqueue_reactor.
[SVN r45059]
2008-05-03 11:36:16 +00:00
Christopher Kohlhoff
a89f7596cf Don't use the names readv and writev for functions defined inside asio as
these names seem to be macros on Tru64.


[SVN r45010]
2008-05-02 08:38:15 +00:00
Christopher Kohlhoff
528e09e9f6 Fully qualify uses of asio's placeholders to resolve ambiguity with C++0x's
placeholders namespace.


[SVN r45006]
2008-05-02 07:59:01 +00:00
Christopher Kohlhoff
7acfc68a3a A memory barrier is needed on some platforms to ensure that all updates
to the node occur before the tail pointer is updated.


[SVN r44998]
2008-05-01 22:27:21 +00:00
Christopher Kohlhoff
ee366184d6 Add a fast path for some speculative read and write operations in the
epoll_reactor.


[SVN r44997]
2008-05-01 22:00:26 +00:00
Christopher Kohlhoff
a34a1413ca Add an experimental two-lock queue implementation for task_io_service.
[SVN r44851]
2008-04-28 13:56:07 +00:00
Christopher Kohlhoff
23c4f7061d Add raw socket support.
[SVN r44849]
2008-04-28 13:36:18 +00:00
Christopher Kohlhoff
bfda1481e0 Update asio version number.
[SVN r44848]
2008-04-28 13:35:27 +00:00
Christopher Kohlhoff
8768d9dff1 Fix or suppress MSVC level 4 warnings. Fixes #1703.
[SVN r44727]
2008-04-22 23:46:15 +00:00
Christopher Kohlhoff
be84a0a75a Add requirements for handle and descriptor services. Add new classes to the
quickref index page.


[SVN r44685]
2008-04-21 07:59:21 +00:00
Christopher Kohlhoff
62729d734d Add documentation on the limits of the number of buffers that may be
transferred in individual operations.


[SVN r44684]
2008-04-21 06:20:32 +00:00
Christopher Kohlhoff
9d35aa9751 Regenerate documentation.
[SVN r44683]
2008-04-21 06:15:50 +00:00
Christopher Kohlhoff
0d06a87088 Add UNIX domain sockets, POSIX stream-oriented descriptors and Windows
stream-oriented handles to the reference documentation.


[SVN r44682]
2008-04-21 06:15:17 +00:00
Christopher Kohlhoff
4ef94bda42 Ensure all non-friend related functions are included in the documentation.
[SVN r44681]
2008-04-21 06:14:29 +00:00
Christopher Kohlhoff
482e083b76 Remove a local variable that was hiding the ec parameter and preventing
error codes from being correctly propagated. Fixes #1820.


[SVN r44679]
2008-04-21 05:52:20 +00:00
Christopher Kohlhoff
888b36fa55 Add porthopper example to demonstrate applications that mix synchronous and
asynchronous operations.


[SVN r44678]
2008-04-21 05:43:42 +00:00
Christopher Kohlhoff
ee449aa163 Add new wrapper classes for stream-oriented handles on Windows.
[SVN r44676]
2008-04-21 05:32:34 +00:00
Christopher Kohlhoff
1ef42e04c6 Add new wrapper classes for stream-oriented file descriptors on POSIX platforms.
[SVN r44675]
2008-04-21 05:16:15 +00:00
Christopher Kohlhoff
f784e54ced Add support for UNIX domain sockets.
[SVN r44674]
2008-04-21 04:43:05 +00:00
Christopher Kohlhoff
a277af13a5 Add a special null_buffers type that allows read and write operations to
be used to indicate the socket's readiness to read or write without
blocking.


[SVN r44673]
2008-04-21 04:02:37 +00:00
Christopher Kohlhoff
5d44c01796 Improve documentation for the protected functions and data in basic_io_object<>.
[SVN r44670]
2008-04-21 02:01:34 +00:00
Christopher Kohlhoff
2ae65fbd27 Fix infinite recursion in the ssl::stream's shutdown() implementation.
[SVN r44668]
2008-04-21 01:42:10 +00:00
Christopher Kohlhoff
1a12b931f9 Update version number to match release.
[SVN r44667]
2008-04-21 01:41:29 +00:00
Christopher Kohlhoff
9af5979e38 Improve efficiency of basic_streambuf::consume() by using a single call to
gbump() rather than calling sbumpc() in a loop.


[SVN r44666]
2008-04-21 01:39:06 +00:00
Christopher Kohlhoff
17ef45244b Enhance example to make it clear that invocation hooking can be used with
asynchronous operations.


[SVN r44665]
2008-04-21 01:36:28 +00:00
Christopher Kohlhoff
ee4e432de1 Ensure that timer dispatching responsibility is correctly relinquished when
processing leftover interrupts from a previous run invocation.


[SVN r44663]
2008-04-21 01:27:48 +00:00
Christopher Kohlhoff
64b08a01c4 Add ability to disable the uses of the typeid operator by defining
BOOST_NO_TYPEID or BOOST_ASIO_NO_TYPEID.


[SVN r44662]
2008-04-21 01:23:42 +00:00
Christopher Kohlhoff
5cc5f0027e Merged revisions 43879 via svnmerge from
https://svn.boost.org/svn/boost/trunk

........
  r43879 | chris_kohlhoff | 2008-03-28 01:18:07 +1100 (Fri, 28 Mar 2008) | 3 lines
  
  Fix double-free error that occurs when an exception is thrown from a
  handler that has been dispatched (i.e. not posted) through a strand.
........


[SVN r43903]
2008-03-28 05:09:55 +00:00
Christopher Kohlhoff
5ba249c3d1 Fix double-free error that occurs when an exception is thrown from a
handler that has been dispatched (i.e. not posted) through a strand.


[SVN r43879]
2008-03-27 14:18:07 +00:00
Christopher Kohlhoff
601a882f6e Merge asio doc fixes from release branch.
[SVN r43640]
2008-03-15 22:37:58 +00:00
Christopher Kohlhoff
a6321210c7 Merged fixes from trunk.
........
  r43570 | chris_kohlhoff | 2008-03-13 00:26:41 +1100 (Thu, 13 Mar 2008) | 3 lines
  
  Use unions to fix a sockaddr_storage aliasing problem that shows up with
  g++ 4.3.0.
........
  r43586 | chris_kohlhoff | 2008-03-13 17:59:02 +1100 (Thu, 13 Mar 2008) | 2 lines
  
  Fix incorrect use of sin_port with a sockaddr_in6 structure.
........


[SVN r43615]
2008-03-15 05:31:11 +00:00
Christopher Kohlhoff
adab7d88e0 Fix incorrect use of sin_port with a sockaddr_in6 structure.
[SVN r43586]
2008-03-13 06:59:02 +00:00
Christopher Kohlhoff
2b5306585d Merge fixes from trunk.
........
  r43377 | chris_kohlhoff | 2008-02-23 09:43:54 +1100 (Sat, 23 Feb 2008) | 2 lines
  
  Use the correct vector of timer queues when dispatching timers.
........
  r43437 | chris_kohlhoff | 2008-02-29 23:57:57 +1100 (Fri, 29 Feb 2008) | 2 lines
  
  Add missing tie().
........
  r43469 | chris_kohlhoff | 2008-03-04 00:21:05 +1100 (Tue, 04 Mar 2008) | 4 lines
  
  Disable use of CancelIo by default, due to the possibility of silent
  failure on some system configurations. Swallow error returned by CancelIoEx
  if there are no operations to be cancelled.
........
  r43470 | chris_kohlhoff | 2008-03-04 00:27:06 +1100 (Tue, 04 Mar 2008) | 2 lines
  
  Add missing 'boost_' prefix to helper namespace.
........
  r43471 | chris_kohlhoff | 2008-03-04 00:36:35 +1100 (Tue, 04 Mar 2008) | 2 lines
  
  Regenerate documentation.
........
  r43472 | chris_kohlhoff | 2008-03-04 01:05:35 +1100 (Tue, 04 Mar 2008) | 1 line
  
  Update copyright notices.
........
  r43473 | chris_kohlhoff | 2008-03-04 01:13:01 +1100 (Tue, 04 Mar 2008) | 2 lines
  
  Update copyright notices.
........
  r43569 | chris_kohlhoff | 2008-03-13 00:25:49 +1100 (Thu, 13 Mar 2008) | 4 lines
  
  Revert to having the windows-bug workaround (short timeout on
  GetQueuedCompletionStatus) on all threads as there are still scenarios
  where threads can get stuck indefinitely.
........


[SVN r43571]
2008-03-12 14:12:08 +00:00
Christopher Kohlhoff
7c43ea9399 Use unions to fix a sockaddr_storage aliasing problem that shows up with
g++ 4.3.0.


[SVN r43570]
2008-03-12 13:26:41 +00:00
Christopher Kohlhoff
301f79a384 Revert to having the windows-bug workaround (short timeout on
GetQueuedCompletionStatus) on all threads as there are still scenarios
where threads can get stuck indefinitely.


[SVN r43569]
2008-03-12 13:25:49 +00:00
Christopher Kohlhoff
02e47999fa Update copyright notices.
[SVN r43473]
2008-03-03 14:13:01 +00:00
Christopher Kohlhoff
f99a3cb814 Update copyright notices.
[SVN r43472]
2008-03-03 14:05:35 +00:00
Christopher Kohlhoff
d7bc0d3c9f Regenerate documentation.
[SVN r43471]
2008-03-03 13:36:35 +00:00
Christopher Kohlhoff
7df2a57eef Add missing 'boost_' prefix to helper namespace.
[SVN r43470]
2008-03-03 13:27:06 +00:00
Christopher Kohlhoff
002ebea1e3 Disable use of CancelIo by default, due to the possibility of silent
failure on some system configurations. Swallow error returned by CancelIoEx
if there are no operations to be cancelled.


[SVN r43469]
2008-03-03 13:21:05 +00:00
Christopher Kohlhoff
61bcc0b5ec Add missing tie().
[SVN r43437]
2008-02-29 12:57:57 +00:00
Christopher Kohlhoff
5b09097082 Use the correct vector of timer queues when dispatching timers.
[SVN r43377]
2008-02-22 22:43:54 +00:00
Christopher Kohlhoff
820a9176ce Bump asio version prior to release candidate.
[SVN r43343]
2008-02-21 07:18:19 +00:00
Christopher Kohlhoff
c5c569f0f5 Merged in fixes from trunk.
........
  r42119 | chris_kohlhoff | 2007-12-18 00:04:30 +1100 (Tue, 18 Dec 2007) | 2 lines
  
  Fixes for older HP-UX.
........
  r42121 | chris_kohlhoff | 2007-12-18 00:17:46 +1100 (Tue, 18 Dec 2007) | 2 lines
  
  Documentation fixes.
........
  r42750 | chris_kohlhoff | 2008-01-15 00:13:35 +1100 (Tue, 15 Jan 2008) | 2 lines
  
  Fix concept name in comment.
........
  r42752 | chris_kohlhoff | 2008-01-15 00:20:06 +1100 (Tue, 15 Jan 2008) | 2 lines
  
  Add missing broken pipe error.
........
  r42753 | chris_kohlhoff | 2008-01-15 00:21:37 +1100 (Tue, 15 Jan 2008) | 3 lines
  
  Don't include sys/time.h when compiling with aCC, as that header does not
  supply pselect(), which is needed for HP-UX/aCC to work correctly.
........
  r42754 | chris_kohlhoff | 2008-01-15 00:22:21 +1100 (Tue, 15 Jan 2008) | 2 lines
  
  Disable noisy and incorrect /Wp64 warnings generated by MSVC.
........
  r42755 | chris_kohlhoff | 2008-01-15 00:24:28 +1100 (Tue, 15 Jan 2008) | 3 lines
  
  Don't call epoll_wait/kevent if there are no old operations (where old means
  added prior to the last epoll_wait/kevent call) needing to be demultiplexed.
........
  r42756 | chris_kohlhoff | 2008-01-15 00:25:24 +1100 (Tue, 15 Jan 2008) | 2 lines
  
  Silence some integer truncation warnings.
........
  r42758 | chris_kohlhoff | 2008-01-15 00:27:52 +1100 (Tue, 15 Jan 2008) | 8 lines
  
  Silence some integer truncation warnings.
  
  Only perform the windows-bug workaround where we use a short timeout with
  GetQueuedCompletionStatus from one thread, i.e. the timer thread.
  
  Keep track of the number of OVERLAPPED-derived operations to ensure that
  they all get cleaned up when the io_service is destroyed.
........
  r42759 | chris_kohlhoff | 2008-01-15 00:29:08 +1100 (Tue, 15 Jan 2008) | 5 lines
  
  Check for truncation when converting buffer size from size_t to openssl's
  int argument.
  
  Try to fix possible thread-safety issues in SSL wrapper.
........
  r42817 | chris_kohlhoff | 2008-01-17 00:46:01 +1100 (Thu, 17 Jan 2008) | 2 lines
  
  Set the openssl callback function for getting a thread ID.
........
  r43054 | chris_kohlhoff | 2008-02-02 22:37:45 +1100 (Sat, 02 Feb 2008) | 4 lines
  
  Ensure that the workaround for the MSVC secure iterator problem is only
  used when compiling with MSVC. The workaround causes g++'s library debug
  mode to report errors due to the assignment from a singular iterator.
........
  r43055 | chris_kohlhoff | 2008-02-02 22:39:17 +1100 (Sat, 02 Feb 2008) | 2 lines
  
  Fix "possible loss of data" warning when building for Windows 2000 targets.
........
  r43056 | chris_kohlhoff | 2008-02-02 23:02:23 +1100 (Sat, 02 Feb 2008) | 3 lines
  
  The latest Windows SDKs don't support IPv6 when building for Windows 2000,
  so we need to use the SDK emulation in that case.
........
  r43221 | chris_kohlhoff | 2008-02-12 00:59:44 +1100 (Tue, 12 Feb 2008) | 2 lines
  
  Need to define _XOPEN_SOURCE_EXTENDED when compiling for HP-UX.
........
  r43301 | chris_kohlhoff | 2008-02-19 00:31:26 +1100 (Tue, 19 Feb 2008) | 2 lines
  
  Fix printing of error messages.
........
  r43302 | chris_kohlhoff | 2008-02-19 00:33:23 +1100 (Tue, 19 Feb 2008) | 2 lines
  
  Only define _XOPEN_SOURCE_EXTENDED when building with gcc on HP-UX.
........
  r43303 | chris_kohlhoff | 2008-02-19 00:35:15 +1100 (Tue, 19 Feb 2008) | 3 lines
  
  Add missing #include of socket_types.hpp needed for the SSL unit tests
  to compile successfully on Windows.
........


[SVN r43342]
2008-02-21 06:54:04 +00:00
Christopher Kohlhoff
7dc5987fad Fix up links to asio example source files by copying the source files into the documentation directory.
[SVN r43341]
2008-02-21 03:41:25 +00:00
Christopher Kohlhoff
1022bee82b Need to copy images used by the asio docs to the correct location.
[SVN r43340]
2008-02-21 01:28:34 +00:00
Christopher Kohlhoff
02bffc92fb Ensure that the asio docs are generated.
[SVN r43313]
2008-02-19 07:31:40 +00:00
Christopher Kohlhoff
8e218007b0 Add missing #include of socket_types.hpp needed for the SSL unit tests
to compile successfully on Windows.


[SVN r43303]
2008-02-18 13:35:15 +00:00
Christopher Kohlhoff
ff29c1bcfb Only define _XOPEN_SOURCE_EXTENDED when building with gcc on HP-UX.
[SVN r43302]
2008-02-18 13:33:23 +00:00