Commit Graph

864 Commits

Author SHA1 Message Date
Christopher Kohlhoff
3d9eada294 Use the workaround syntax for specifying a return type with boost::bind.
Needed for the SSL support to work on some older compilers (in particular,
g++ 3.4.5 as used with MinGW).


[SVN r50963]
2009-02-02 09:36:11 +00:00
Christopher Kohlhoff
d7a448832d Use a pipe if eventfd is not supported at runtime. Fixes #2683.
[SVN r50961]
2009-02-02 06:18:59 +00:00
Christopher Kohlhoff
82ed5cb275 Clear the last error following a successful Windows API call, since some
socket providers may leave last error set even when the call succeeds.


[SVN r50949]
2009-02-01 13:25:05 +00:00
Christopher Kohlhoff
774b96f4b5 Add include of <cstring> to fix a compile error on Solaris 10. Fixes #2607.
[SVN r50948]
2009-02-01 12:50:08 +00:00
Christopher Kohlhoff
d53f078c45 Ensure arguments to windows::overlapped_ptr::complete() are passed through to
the completion handler. Fixes #2614.


[SVN r50947]
2009-02-01 12:41:01 +00:00
Christopher Kohlhoff
0d15139621 Suppress unused result warning. Fixes #2534.
[SVN r50946]
2009-02-01 12:28:12 +00:00
Christopher Kohlhoff
1a99da8a0b Improve warning message when _WIN32_WINNT is not correctly defined. Fixes #2541.
[SVN r50945]
2009-02-01 11:57:01 +00:00
Christopher Kohlhoff
94696dfc48 Use correct size for IP_MULTICAST_LOOP option on QNX. Fixes #2530.
[SVN r50944]
2009-02-01 11:42:09 +00:00
Christopher Kohlhoff
9d8581df70 Add more documentation for asio::streambuf.
[SVN r49497]
2008-10-31 01:09:45 +00:00
Christopher Kohlhoff
0c1aea1ebf Fix scoped_ptr usage to work with Sun Studio 11.
[SVN r49484]
2008-10-29 13:00:24 +00:00
Christopher Kohlhoff
96fcff70f2 Fix problem in read_until's match_condition handling when the delimiter
lies at the end of the data.


[SVN r49482]
2008-10-29 12:49:05 +00:00
Christopher Kohlhoff
f2ae35573e Reduce memory usage by doing lazy initialisation of the io_service's reactor.
[SVN r49203]
2008-10-09 06:39:05 +00:00
Christopher Kohlhoff
a64e08daf8 Make the service_registry's usage of typeid work when the default gcc
linker visibility is set to hidden.


[SVN r49202]
2008-10-09 06:34:48 +00:00
Christopher Kohlhoff
b06aeaea60 Only use TerminateThread when explicitly requested by the user by calling
asio::detail:🧵:set_terminate_threads(true). This fixes a memory leak
that may occur with internally created threads.


[SVN r49201]
2008-10-09 06:33:34 +00:00
Christopher Kohlhoff
70ced27ea0 Fix basic_socket_streambuf to work with Protocol objects that don't
provide a resolver.


[SVN r49199]
2008-10-09 06:31:01 +00:00
Christopher Kohlhoff
67a930a268 Ensure the streambuf's egptr() is kept in sync the pptr(). Use std::memmove
rather than std::rotate to minimise data copying. Avoid unnecessary resizes
of the underlying vector.


[SVN r49198]
2008-10-09 06:30:16 +00:00
Christopher Kohlhoff
15b7cb1e8a Merge codegear changes from non-boost version of asio.
[SVN r49197]
2008-10-09 06:28:39 +00:00
Christopher Kohlhoff
d67d33cd9b Add missing bounds checks as specified in TR2 proposal.
[SVN r49195]
2008-10-09 06:22:58 +00:00
Nicola Musatti
32da68bc8e Patch from Ticket #2372
[SVN r49155]
2008-10-06 21:46:14 +00:00
Christopher Kohlhoff
7d25f1c393 Clarify which resolve functions perform forward or reverse resolution.
[SVN r48715]
2008-09-11 00:05:57 +00:00
Christopher Kohlhoff
a746a264d3 Handle SSL library errors.
[SVN r48686]
2008-09-09 13:02:22 +00:00
Christopher Kohlhoff
557ca7cebf Version bump.
[SVN r48685]
2008-09-09 13:01:16 +00:00
Christopher Kohlhoff
68b4f9d710 Update completion_condition documentation to match new signature.
[SVN r48561]
2008-09-03 09:08:04 +00:00
Christopher Kohlhoff
295d977d78 Explicitly specify return type with bind to keep some compilers happy.
[SVN r48560]
2008-09-03 09:06:10 +00:00
Christopher Kohlhoff
a2af9824d6 Add a workaround for a possible gcc 4.3 optimiser bug.
[SVN r48559]
2008-09-03 08:57:48 +00:00
Christopher Kohlhoff
76bf08631f Oops, changeset 48535 accidentally reverted 48527's fix.
[SVN r48558]
2008-09-03 08:56:43 +00:00
Christopher Kohlhoff
aea347d0a7 Add const overloads of the lowest_layer member functions.
[SVN r48535]
2008-09-02 11:34:18 +00:00
Christopher Kohlhoff
f5caaa00d2 Fix to compile with MSVC 7.1.
[SVN r48527]
2008-09-02 08:46:46 +00:00
Christopher Kohlhoff
687fe8806f Use templates to handle iovec structures that have an iov_base member of
type char*.


[SVN r48525]
2008-09-01 23:05:05 +00:00
Christopher Kohlhoff
c60ebedd28 Add support for using an eventfd descriptor on linux to interrupt a blocked
epoll/select reactor.


[SVN r48524]
2008-09-01 23:04:35 +00:00
Christopher Kohlhoff
4696ee9033 Add class to allow use of arbitrary Windows overlapped I/O operations.
[SVN r48495]
2008-08-31 11:38:52 +00:00
Christopher Kohlhoff
7176a41d0d Refactor reactive socket implementation so that synchronous read, write,
accept and connect operations don't modify data associated with the socket.


[SVN r48491]
2008-08-31 09:01:59 +00:00
Christopher Kohlhoff
bb6bfd4b5a Change the CompletionCondition concept so that:
- It is now evaluated before the first call to the underlying
  *_some() operation, as well as after every operation.
- The return value is a number of bytes, which indicates the maximum
  length to be transferred on the subsequent *_some() operation. If
  the return value is 0 then the composed operation completes.

Add missing unit tests for read_at and write_at.


[SVN r48418]
2008-08-28 12:11:47 +00:00
Christopher Kohlhoff
05bf3b8195 Fix duplicate variable warning. Use get_io_service() rather than
deprecated io_service() function.


[SVN r48416]
2008-08-28 12:06:42 +00:00
Christopher Kohlhoff
94292f1605 Fix duplicate variable warning.
[SVN r48415]
2008-08-28 12:04:21 +00:00
Christopher Kohlhoff
7387044863 Fix uninitialised event handles in asio::detail::thread in external mode.
[SVN r48414]
2008-08-28 12:03:46 +00:00
Christopher Kohlhoff
302ca4f79d Update version to match release.
[SVN r48410]
2008-08-28 09:04:31 +00:00
Christopher Kohlhoff
8b4057a004 Include CREAD and CLOCAL in the default flags for serial ports.
[SVN r48039]
2008-08-09 01:47:11 +00:00
Christopher Kohlhoff
a81db41dbc QNX defines AI_V4MAPPED, AI_ALL and AI_ADDRCONFIG but does not implement them.
[SVN r48033]
2008-08-08 14:49:23 +00:00
Christopher Kohlhoff
0b693c585c Fix memory leak in use_tmp_dh_file().
[SVN r48032]
2008-08-08 14:48:24 +00:00
Christopher Kohlhoff
71d47ca98c Fix a tight spin on epoll (or /dev/poll) that occurs when the EPOLLERR and
EPOLLHUP events are reported for a descriptor and there are no pending
operations.


[SVN r48031]
2008-08-08 14:47:58 +00:00
Christopher Kohlhoff
2d79a40ae6 Correct an array bounds error in the treatment of paths for UNIX domain sockets.
Fixes #2120.


[SVN r47673]
2008-07-22 08:26:35 +00:00
Christopher Kohlhoff
285f3e5246 Fix SSL thread ID function to work correctly on 64-bit Windows.
[SVN r47218]
2008-07-08 12:31:48 +00:00
Christopher Kohlhoff
c8899c13a0 POSIX platforms are not required to define IOV_MAX, so if it's not
available default to the stipulated minimum of 16.


[SVN r47217]
2008-07-08 12:30:49 +00:00
Christopher Kohlhoff
479a3abd98 Version bump.
[SVN r47014]
2008-07-02 22:52:22 +00:00
Christopher Kohlhoff
e14e831413 Clarify behaviour of read_until/async_read_until with respect to leftover
data in the streambuf. Use separate brief descriptions for function groups.
Add some extra notes to the io_service documentation.


[SVN r46950]
2008-07-01 12:14:57 +00:00
Christopher Kohlhoff
4123435aa2 Improve buffer() documentation. Fix vector overloads to match TR2 proposal.
[SVN r46949]
2008-07-01 12:13:51 +00:00
Christopher Kohlhoff
e8c7f33c05 Fix name of parameter as referred to in documentation.
[SVN r46945]
2008-07-01 11:53:54 +00:00
Christopher Kohlhoff
39f9567e78 Fix documentation on behaviour when a connect operation fails.
[SVN r46944]
2008-07-01 11:52:54 +00:00
Christopher Kohlhoff
03fc0e7dd6 One more check needed for BSD serial port extensions.
[SVN r46535]
2008-06-20 00:25:50 +00:00
Christopher Kohlhoff
ffe21c73a2 Fix serial port support on POSIX platforms that don't provide the BSD
extensions cfmakeraw, cfsetspeed and CRTSCTS.


[SVN r46507]
2008-06-19 12:50:02 +00:00
Christopher Kohlhoff
6e1c421d72 Fix for unicode builds.
[SVN r46506]
2008-06-19 12:41:32 +00:00
Christopher Kohlhoff
43e62310b6 Add new overloads for read_until and async_read_until that invoke a
user-defined function object to determine when a match has been found.


[SVN r46475]
2008-06-18 13:03:46 +00:00
Christopher Kohlhoff
2d5f24d6ae Fix write_at declaration. Add missing documentation for offset parameters.
[SVN r46473]
2008-06-18 11:22:21 +00:00
Christopher Kohlhoff
1539f2c8a1 Add an iterator for bytewise traversal of a buffer sequence.
[SVN r46415]
2008-06-16 00:41:29 +00:00
Christopher Kohlhoff
2d4504e512 Only perform check for a 0-byte receive meaning EOF on SOCK_STREAM sockets.
[SVN r46327]
2008-06-11 13:07:41 +00:00
Christopher Kohlhoff
cac7fe6350 Remove repeated typedef of reactor_type.
[SVN r46325]
2008-06-11 12:41:48 +00:00
Christopher Kohlhoff
fa82af9e16 Add random-access handles for use on Windows.
[SVN r46319]
2008-06-11 11:17:53 +00:00
Christopher Kohlhoff
7e062f298d Add support for serial ports.
[SVN r46272]
2008-06-09 12:54:55 +00:00
Christopher Kohlhoff
f3ee6627d8 Fix a deadlock that can occur when destroying a thread object with global
lifetime in a dynamically loaded DLL on Windows. Note that deadlock can
still occur if the thread is launched by the constructor of an object with
global lifetime.


[SVN r45935]
2008-05-30 08:39:19 +00:00
Christopher Kohlhoff
56b93eea3a Fix a crash that can occur when destroying a handler object that owns its
own memory (as is the case when destroying handlers in an orphaned strand).


[SVN r45811]
2008-05-27 07:54:12 +00:00
Christopher Kohlhoff
ac762e87b9 Some Windows platforms don't define IPPROTO_ICMPV6.
[SVN r45633]
2008-05-21 22:56:49 +00:00
Christopher Kohlhoff
e011561170 Implement custom allocation support for timer operations.
[SVN r45600]
2008-05-21 09:25:12 +00:00
Christopher Kohlhoff
db608c4370 Add check for empty heap when determining the minimum wait duration for a
timer queue.


[SVN r45355]
2008-05-14 12:17:26 +00:00
Christopher Kohlhoff
40fd64673f Use an atomic counter for strand reference counting.
[SVN r45179]
2008-05-06 22:09:47 +00:00
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
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
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
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
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
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
adab7d88e0 Fix incorrect use of sin_port with a sockaddr_in6 structure.
[SVN r43586]
2008-03-13 06:59:02 +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
f99a3cb814 Update copyright notices.
[SVN r43472]
2008-03-03 14:05: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
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
697ef44e1c The latest Windows SDKs don't support IPv6 when building for Windows 2000,
so we need to use the SDK emulation in that case.


[SVN r43056]
2008-02-02 12:02:23 +00:00
Christopher Kohlhoff
57f75e9a24 Fix "possible loss of data" warning when building for Windows 2000 targets.
[SVN r43055]
2008-02-02 11:39:17 +00:00
Christopher Kohlhoff
f50757120a 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.


[SVN r43054]
2008-02-02 11:37:45 +00:00
Christopher Kohlhoff
0b26077356 Set the openssl callback function for getting a thread ID.
[SVN r42817]
2008-01-16 13:46:01 +00:00
Christopher Kohlhoff
1f215cd262 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.


[SVN r42759]
2008-01-14 13:29:08 +00:00
Christopher Kohlhoff
0841027789 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.


[SVN r42758]
2008-01-14 13:27:52 +00:00
Christopher Kohlhoff
95e7a5a83f Silence some integer truncation warnings.
[SVN r42756]
2008-01-14 13:25:24 +00:00
Christopher Kohlhoff
d02ff9fd31 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.


[SVN r42755]
2008-01-14 13:24:28 +00:00
Christopher Kohlhoff
66e7e8235b Disable noisy and incorrect /Wp64 warnings generated by MSVC.
[SVN r42754]
2008-01-14 13:22:21 +00:00
Christopher Kohlhoff
0481bc277b 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.


[SVN r42753]
2008-01-14 13:21:37 +00:00
Christopher Kohlhoff
e73e772d7f Add missing broken pipe error.
[SVN r42752]
2008-01-14 13:20:06 +00:00
Christopher Kohlhoff
30db47b9f8 Documentation fixes.
[SVN r42121]
2007-12-17 13:17:46 +00:00
Christopher Kohlhoff
197952d66b Bump version number.
[SVN r42120]
2007-12-17 13:08:10 +00:00
Christopher Kohlhoff
808e0862ba Fixes for older HP-UX.
[SVN r42119]
2007-12-17 13:04:30 +00:00
Christopher Kohlhoff
931e25063d Suppress signed/unsigned warning.
[SVN r41868]
2007-12-08 13:48:52 +00:00
Christopher Kohlhoff
8d4d725277 Try to fix stall when sending large amounts of data over SSL.
[SVN r41823]
2007-12-07 12:53:39 +00:00
Christopher Kohlhoff
1c123accd8 Don't use deprecated function workaround when compiling for Windows CE.
[SVN r41762]
2007-12-05 21:46:19 +00:00
Christopher Kohlhoff
312551ab47 Prevent deprecated function warnings for MSVC >= 8.
[SVN r41701]
2007-12-04 21:28:42 +00:00
Christopher Kohlhoff
1172215e3d Make async operations fail with an error if the socket descriptor doesn't
fit into the select call's fd_set.


[SVN r41432]
2007-11-28 13:26:33 +00:00
Beman Dawes
7ba40bdcb8 // Add or correct comment identifying Boost library this header is associated with.
[SVN r41173]
2007-11-17 20:13:16 +00:00
Christopher Kohlhoff
5c14db353b Try to fix an order-of-initialisation problem with error_category references.
The symptom, which only occurs in some applications, is a crash due to a
dereference of a null pointer. The exact conditions under which the problem
occurs are not fully understood, so this fix is probably more paranoid than
necessary.


[SVN r41100]
2007-11-15 06:19:04 +00:00
Christopher Kohlhoff
45add4d11e Add a workaround for MSVC secure iterator problem where allowing the
destruction of an iterator to an already-destroyed string object results in
a program crash. Revert previous change to destroy buffers prior to
invoking the handler since it didn't fix the problem and wasn't cleaning
up all copies of the buffers anyway.


[SVN r41059]
2007-11-13 12:50:27 +00:00
Christopher Kohlhoff
970375748c Cannot perform concurrent operations on the /dev/poll descriptor where
the sockets descriptors involved may already be being waited on. Changed
the dev_poll_reactor class to keep a vector of pending event changes and
interrupt the /dev/poll ioctl() wait to apply it.


[SVN r41028]
2007-11-12 12:07:39 +00:00
Christopher Kohlhoff
7de155b732 Fix timer stalls.
[SVN r40924]
2007-11-08 07:52:49 +00:00
Christopher Kohlhoff
1086746c7d Eliminate the need for an extra thread to perform timer dispatching.
[SVN r40919]
2007-11-08 04:10:14 +00:00
Christopher Kohlhoff
556cbac864 Don't set errno when building for Windows targets. Should fix WinCE build.
[SVN r40779]
2007-11-05 11:52:52 +00:00
Christopher Kohlhoff
6e1a010a72 Some changes to enable support for WinCE.
[SVN r40759]
2007-11-04 21:25:49 +00:00
Christopher Kohlhoff
9db4bb6bc0 Fix memory leak when an io_service is allowed to destruct with unfinished
async_wait operations.


[SVN r40670]
2007-11-01 22:42:26 +00:00
Christopher Kohlhoff
d306f9dafe Use GetModuleHandleA rather than GetModuleHandle to avoid being broken by
UNICODE #defines.


[SVN r40548]
2007-10-29 13:07:08 +00:00
Christopher Kohlhoff
3787272722 Ensure the task handler is put back on the queue after polling.
[SVN r40547]
2007-10-29 13:06:39 +00:00
Christopher Kohlhoff
644ed0fa71 Mac OS X 10.5 (Leopard) gives a compile error if you try to perform an
operation on a const fd_set pointer.


[SVN r40546]
2007-10-29 13:06:12 +00:00
Christopher Kohlhoff
72198ee954 Fixes for HP-UX test failures.
[SVN r40413]
2007-10-24 13:23:59 +00:00
Christopher Kohlhoff
cca0c50ca1 Documentation fixes.
[SVN r40345]
2007-10-23 08:09:46 +00:00
Christopher Kohlhoff
4915994d7c Only use pselect() when compiling with aCC.
[SVN r40344]
2007-10-23 08:09:21 +00:00
Christopher Kohlhoff
1122c04976 Fix address_v6::operator<.
[SVN r40263]
2007-10-21 08:13:21 +00:00
Christopher Kohlhoff
46191ad216 Use an unsigned char for the enable_loopback socket option on HP-UX.
[SVN r40261]
2007-10-21 07:30:04 +00:00
Christopher Kohlhoff
9df40d565a On HP-UX use pselect() rather than select() to avoid weirdness where
different select() prototypes are declared depending on the order the
system headers are included.


[SVN r40259]
2007-10-21 07:09:19 +00:00
Christopher Kohlhoff
a694fc7ba7 Documentation fixes.
[SVN r40256]
2007-10-21 05:46:47 +00:00
Christopher Kohlhoff
827c767b80 HP-UX fails to declare if_nametoindex and if_indextoname as extern "C".
Added declarations for them with correct linkage to avoid linker errors.


[SVN r40255]
2007-10-21 05:46:15 +00:00
Christopher Kohlhoff
9f6bab9893 Ensure the buffers and completion condition objects are destroyed before
the completion handler is invoked.


[SVN r40241]
2007-10-21 01:48:03 +00:00
Christopher Kohlhoff
811d967f52 Add get_io_service() synonym for io_service() to match TR2 proposal.
[SVN r40176]
2007-10-19 08:09:55 +00:00
Christopher Kohlhoff
b4384805aa Assume that Tru64 also needs SIGPIPE to be blocked.
[SVN r40149]
2007-10-18 08:34:03 +00:00
Christopher Kohlhoff
14d49a688a Add dummy enum for ssl errors. Change to static const references to error
category objects to be consistent with boost.system.


[SVN r40119]
2007-10-17 14:04:42 +00:00
Christopher Kohlhoff
5af39ab4ef Make Windows XP the default target Windows version as the latest Windows
SDK doesn't support IPv6 for Windows 2000 targets.


[SVN r40108]
2007-10-17 07:58:38 +00:00
Christopher Kohlhoff
bd35039449 Throw an exception if unable to create a pipe for the pipe_select_interrupter.
[SVN r40107]
2007-10-17 07:25:03 +00:00
Christopher Kohlhoff
87cfb10267 Borland C++ wants friendship for the task_cleanup nested class.
[SVN r40106]
2007-10-17 05:22:26 +00:00
Christopher Kohlhoff
2865a15b93 Revert HP-UX/aCC change to select() wrapper as it breaks more than it fixes.
[SVN r40104]
2007-10-17 04:44:38 +00:00
Christopher Kohlhoff
9fc86e1351 Add a /dev/poll reactor implementation for Solaris.
[SVN r39913]
2007-10-10 23:12:06 +00:00
Christopher Kohlhoff
96a6faa937 HP-UX with aCC uses a variant of select() that takes int* arguments rather
than fd_set*.


[SVN r39864]
2007-10-09 21:47:40 +00:00
Christopher Kohlhoff
4fa7155b45 Assume that HP-UX and AIX both need to have SIGPIPE blocked.
[SVN r39863]
2007-10-09 21:47:07 +00:00
Christopher Kohlhoff
ddbb696058 The epoll_wait function can produce EPOLLHUP events for a descriptor even
if not specifically requested, resulting in a tight loop of calls to
epoll_wait. Delete a descriptor from epoll if an EPOLLHUP event is
received and there are no registered operations for the descriptor.


[SVN r39752]
2007-10-07 00:11:25 +00:00
Christopher Kohlhoff
27ad77577b Try using an unsigned char for the multicast::enable_loopback socket option
when compiling for Tru64.


[SVN r39665]
2007-10-03 01:43:08 +00:00
Christopher Kohlhoff
e52d0569e1 Add missing #include needed for MinGW.
[SVN r39664]
2007-10-03 01:40:55 +00:00
Christopher Kohlhoff
fe53d29503 Fix warning on AIX about omitted 'private' keyword when deriving from noncopyable.
[SVN r39507]
2007-09-24 13:29:12 +00:00
Christopher Kohlhoff
331beee1a6 Check whether exceptions are enabled on the output iostream and throw or not
throw errors accordingly.


[SVN r39504]
2007-09-24 13:21:03 +00:00
Christopher Kohlhoff
e5c82d221a Try making the ip::multicast::enable_loopback socket option an unsigned char on AIX.
[SVN r39503]
2007-09-24 13:19:31 +00:00
Christopher Kohlhoff
cad9b88130 Strict compilers don't like it when you pass a function with C linkage
as an argument when the parameter type has C++ linkage. Try using the type
of the msghdr::msg_namelen field as an alternative way of deducing the
socklen_t-equivalent type.


[SVN r39443]
2007-09-21 12:34:19 +00:00
Christopher Kohlhoff
1837283e91 Eliminate use of types and structure members that may not be present when
build for non-XOPEN targets.


[SVN r39432]
2007-09-20 22:33:29 +00:00
Christopher Kohlhoff
7e67ec6336 Some compilers require namespace-scope declarations of use_service,
has_service and add_service.


[SVN r39431]
2007-09-20 22:30:54 +00:00
Christopher Kohlhoff
ae79df6318 Move handler queue management to a separate class.
[SVN r39430]
2007-09-20 22:26:55 +00:00
Christopher Kohlhoff
d61cf1e0b8 Larger storage size needed for Windows x64.
[SVN r39429]
2007-09-20 22:20:57 +00:00
Christopher Kohlhoff
50e479d4ab Fix unused argument warning.
[SVN r39364]
2007-09-18 13:13:40 +00:00
Christopher Kohlhoff
520f11ff1b AIX seems to have the socket address family as an unsigned char rather than unsigned short.
[SVN r39211]
2007-09-12 12:24:21 +00:00
Christopher Kohlhoff
3e05da91c1 Use enum-based error code constants.
[SVN r39189]
2007-09-11 11:17:56 +00:00
Christopher Kohlhoff
a79f4c70ea Fix problem where a thread can go idle even if there are handlers that are
ready to be dispatched.

Remove need to have a mutex per idle thread.

Remove need to have a mutex per idle thread.


[SVN r39098]
2007-09-01 06:41:15 +00:00
Christopher Kohlhoff
2a61b8a501 Add #include needed for IOV_MAX.
[SVN r39097]
2007-09-01 06:33:44 +00:00
Christopher Kohlhoff
817fe44ac4 Ensure that a strand is kept alive as long as there are wrapped handlers
for it.


[SVN r39096]
2007-09-01 06:28:40 +00:00
Christopher Kohlhoff
992d80498d Add AIX-specific compile time test for whether sockaddr_storage's family
field is called ss_family or __ss_family.


[SVN r39095]
2007-09-01 06:25:55 +00:00
Christopher Kohlhoff
71d9f010a8 Enable buffer() overload workaround for Sun C++.
[SVN r39094]
2007-09-01 06:20:19 +00:00
Christopher Kohlhoff
9df7f38577 Fix unused argument warnings.
[SVN r38791]
2007-08-20 14:32:05 +00:00
Christopher Kohlhoff
78d7795fba Increase number of buffers that may be sent or received in a single operation.
Clean up win_iocp_socket_service's close-on-destruction handling to ensure
non-blocking socket destructors.


[SVN r38788]
2007-08-20 14:17:15 +00:00
Christopher Kohlhoff
984fd932d6 Fix unused argument warning.
[SVN r38787]
2007-08-20 14:12:31 +00:00
Christopher Kohlhoff
69310edc3c Fix order of initialisation problem with error categories.
[SVN r38786]
2007-08-20 14:11:46 +00:00
Christopher Kohlhoff
989ff8a599 Add missing static keyword to the service_id_matches functions.
[SVN r38785]
2007-08-20 14:08:16 +00:00
Christopher Kohlhoff
25fa47276c Add a workaround for Windows Vista's handling of the boolean socket option
tcp::no_delay, where ::getsockopt will return the size of the option as one
byte, even though a four byte integer was passed in.


[SVN r38784]
2007-08-20 14:07:23 +00:00
Christopher Kohlhoff
4d914fcd64 Add a note to basic_socket<>::close() indicating that shutdown() should
be used for portable graceful closure.


[SVN r38783]
2007-08-20 13:53:27 +00:00
Christopher Kohlhoff
b98a841fa6 Improve documentation for completion condition objects.
[SVN r38323]
2007-07-31 11:39:30 +00:00
Christopher Kohlhoff
0a42306700 Always restart epoll_reactor operations if the callback handler indicates
that they should be restarted, even if there was an error associated with
the file descriptor, to ensure that operations don't get "lost".

Don't cleanup pending timer objects while the reactor lock is held, since
the destructors for the objects may try to make calls back into the
reactor.


[SVN r38322]
2007-07-31 11:36:10 +00:00
Christopher Kohlhoff
e12b0141a6 Eliminate spurious warning for MSVC8 when using /W4 and /Wp64.
[SVN r38321]
2007-07-31 11:35:00 +00:00
Christopher Kohlhoff
dac0aa7f77 Need to include socket_types.hpp for definition of _WIN32_WINNT.
[SVN r38320]
2007-07-31 11:34:12 +00:00
Christopher Kohlhoff
788d350ec5 Don't cleanup pending timer objects while the reactor lock is held, since
the destructors for the objects may try to make calls back into the
reactor.


[SVN r38319]
2007-07-31 11:33:29 +00:00
Christopher Kohlhoff
3f41710b85 Add support for the non-POSIX getaddrinfo errors EAI_NODATA and
EAI_ADDRFAMILY.


[SVN r38318]
2007-07-31 11:32:49 +00:00
Christopher Kohlhoff
3cb6db7cae Don't perform debug check with 0-sized buffers.
[SVN r38053]
2007-06-21 23:29:19 +00:00
Christopher Kohlhoff
86a79bede3 Add missing error message.
[SVN r37798]
2007-05-27 08:04:32 +00:00
Christopher Kohlhoff
65e054db78 Work around mysterious Borland C++ bug that prevents getsockopt and
setsockopt from working correctly.


[SVN r37734]
2007-05-21 13:05:06 +00:00
Christopher Kohlhoff
1742d2e664 Documentation fixes.
[SVN r37720]
2007-05-20 01:04:11 +00:00
Christopher Kohlhoff
cbba2f8ecd Documentation updates.
[SVN r37718]
2007-05-20 00:30:54 +00:00
Christopher Kohlhoff
463b06e4b0 To get portable behaviour for SO_REUSEADDR with UDP, the Mac OS X and BSD
platforms also need SO_REUSEPORT to be set.


[SVN r37717]
2007-05-20 00:28:55 +00:00
Christopher Kohlhoff
68b94f2dc0 Need to enable SO_NOSIGPIPE option on FreeBSD.
[SVN r37715]
2007-05-20 00:28:13 +00:00
Christopher Kohlhoff
899d252fb9 Allow everything to compile on platforms where IPV6_V6ONLY is not defined
(such as Linux distros with a 2.4 kernel), but make any use of ip::v6_only
fail at runtime.


[SVN r37681]
2007-05-13 08:18:09 +00:00
Christopher Kohlhoff
972c54ba27 Preserve the user-set blocking mode over an async connect.
[SVN r37673]
2007-05-12 10:48:24 +00:00
Christopher Kohlhoff
75dd9fdefe Need to define IPV6_UNICAST_HOPS when building with an old Platform SDK.
[SVN r37672]
2007-05-12 10:48:01 +00:00
Christopher Kohlhoff
41bf5929d3 Zero out address structure to prevent failures on some platforms.
[SVN r37671]
2007-05-12 10:47:15 +00:00
Christopher Kohlhoff
9ec1d04a0b Some older UNIX platforms return EPROTO from accept() to indicate that a
connection was lost before being fully established.


[SVN r37670]
2007-05-12 10:46:47 +00:00
Christopher Kohlhoff
cbe0de5634 Add documentation note specifying that pending handlers are still executed
after a strand is destroyed.


[SVN r37632]
2007-05-08 13:40:08 +00:00
Christopher Kohlhoff
05518d58e6 Ensure internal non-blocking flag is set if the user wants non-blocking.
[SVN r37631]
2007-05-08 13:39:04 +00:00
Christopher Kohlhoff
288b994d9b Add header file containing Boost.Asio version number.
[SVN r37628]
2007-05-08 12:20:38 +00:00
Christopher Kohlhoff
66424c1579 Clarify behaviour of io_service::run() in a thread pool.
[SVN r37606]
2007-05-06 22:36:18 +00:00
Christopher Kohlhoff
c64a2dbdaa Fix ip::multicast::enable_loopback option so that it works on Solaris.
[SVN r37605]
2007-05-06 22:35:35 +00:00
Christopher Kohlhoff
8437b8a23f Fix bug in timer heap management.
[SVN r37483]
2007-04-22 07:42:59 +00:00
Christopher Kohlhoff
18dcdcb3ab Enable buffer debugging for g++ when _GLIBCXX_DEBUG is defined.
[SVN r37482]
2007-04-22 07:41:54 +00:00
Christopher Kohlhoff
d926a9054f Don't copy a default-constructed vector iterator.
[SVN r37481]
2007-04-22 07:38:55 +00:00
Christopher Kohlhoff
905e8594fb Fix comments.
[SVN r37389]
2007-04-07 08:54:58 +00:00
Christopher Kohlhoff
4667159f1c Fix problem where the safe_cancellation_thread_id_ was not being calculated
correctly.


[SVN r37388]
2007-04-07 08:50:42 +00:00
Christopher Kohlhoff
2fc7b8e99c Fix libstdc++ debug error.
[SVN r37387]
2007-04-07 08:48:12 +00:00
Christopher Kohlhoff
bafa5a3c7a Some fixes for Solaris, AIX and HP-UX.
[SVN r37020]
2007-02-20 13:19:53 +00:00
Christopher Kohlhoff
f8af480754 Fix crash in comparison of service ids.
[SVN r37018]
2007-02-20 13:15:08 +00:00
Christopher Kohlhoff
adf40110f9 Solaris defines FD_ZERO to use an unqualified call to memset, so we need to
make the function visible using 'using namespace std'.


[SVN r36938]
2007-02-13 07:15:36 +00:00
Christopher Kohlhoff
0d4ccec23f Fix use of hash_value overloads to work on x64 with the Vista version of
the Platform SDK.


[SVN r36917]
2007-02-09 06:44:12 +00:00
Christopher Kohlhoff
6267a27180 Fix to correctly clear error after successful call of WSAAddresstoString or
WSAStringToAddress.


[SVN r36916]
2007-02-09 06:43:00 +00:00
Christopher Kohlhoff
bb236cb7b3 Add is_open() function to acceptor.
[SVN r36915]
2007-02-09 06:41:29 +00:00
Christopher Kohlhoff
3fb401181e Use IN6ADDR_ANY_INIT rather than IPPROTO_IPV6 to detect whether the Windows
Platform SDK supports IPv6, since the Vista Platform SDK has changed
IPPROTO_IPV6 to an enum.


[SVN r36904]
2007-02-06 22:34:02 +00:00
Christopher Kohlhoff
44b862a24a Workaround is needed for BDS2006.
[SVN r36903]
2007-02-06 22:23:48 +00:00
Christopher Kohlhoff
2520c84cd0 Update basic_socket_streambuf and basic_socket_iostream to (almost) match
the TR2 proposal.


[SVN r36753]
2007-01-19 01:09:33 +00:00
Christopher Kohlhoff
39f2ce8d45 Add ability to turn iostream output buffering off.
[SVN r36730]
2007-01-15 07:43:01 +00:00
Christopher Kohlhoff
2212dddb1f Automatically break large buffers into smaller chunks when using read(),
async_read(), write() or async_write().


[SVN r36724]
2007-01-13 23:17:41 +00:00
Christopher Kohlhoff
0c536811ff The misc_ecat error category now needs to be available for Win32 builds.
[SVN r36718]
2007-01-13 12:27:06 +00:00
Christopher Kohlhoff
7db5f2d133 Fix bug where the io_service could incorrectly run out of work (and so shut
down) when an overlapped I/O function fails immediately.


[SVN r36717]
2007-01-13 12:21:01 +00:00
Christopher Kohlhoff
4ee1510c76 Update socket interfaces to match TR2 proposal.
[SVN r36675]
2007-01-09 13:54:51 +00:00
Christopher Kohlhoff
282a9f2146 Update timer classes to match TR2 proposal.
[SVN r36663]
2007-01-08 03:01:13 +00:00
Christopher Kohlhoff
1a72ddb9a7 Update io_service interface to match TR2 proposal.
[SVN r36662]
2007-01-08 01:30:05 +00:00
Christopher Kohlhoff
06402569d5 Update the behaviour of the asio::streambuf overloads of {async_}read and
{async_}read_until to match the TR2 proposal.


[SVN r36636]
2007-01-07 08:26:18 +00:00
Christopher Kohlhoff
5607a01c21 Add ip::unicast::hops and ip::v6_only socket options.
[SVN r36595]
2007-01-06 09:10:54 +00:00
Christopher Kohlhoff
6c632c2967 Fix examples to match current socket option interface.
[SVN r36594]
2007-01-06 09:08:13 +00:00
Christopher Kohlhoff
66dd4c3778 Rename const_buffer_container_1 to const_buffers_1 and
mutable_buffer_container_1 to mutable_buffers_1.


[SVN r36585]
2007-01-04 10:45:09 +00:00
Christopher Kohlhoff
a7209ee0be Rename io_service::interrupt() to io_service::stop().
[SVN r36583]
2007-01-04 09:22:02 +00:00
Christopher Kohlhoff
2ba4146527 Update socket option classes to match interface in TR2 proposal.
[SVN r36582]
2007-01-04 08:21:33 +00:00
Christopher Kohlhoff
2b4748aaaa Update copyright strings to include 2007.
[SVN r36581]
2007-01-04 05:53:07 +00:00
Christopher Kohlhoff
e4d9ea696a Add io_service::id to identify service classes.
[SVN r36580]
2007-01-04 03:43:37 +00:00
Christopher Kohlhoff
af1cb70843 Fix for Borland C++.
[SVN r36579]
2007-01-04 03:39:38 +00:00
Christopher Kohlhoff
fb8dd74390 Documentation cleanup.
[SVN r36578]
2007-01-04 03:38:18 +00:00
Christopher Kohlhoff
390ffd9f7e Exclude error_base from documentation.
[SVN r36577]
2007-01-04 03:38:02 +00:00
Christopher Kohlhoff
00690b50ed Add documentation.
[SVN r36502]
2006-12-24 08:35:08 +00:00
Christopher Kohlhoff
7a2eac3878 Map ERROR_PORT_UNREACHABLE to WSAECONNREFUSED.
[SVN r36474]
2006-12-21 04:07:27 +00:00
Christopher Kohlhoff
ae1be56a05 Move erase from hash_map to prevent multiple delete.
[SVN r36473]
2006-12-21 04:06:41 +00:00
Christopher Kohlhoff
5cded59aef Replace win_iocp_io_service::register_socket() with register_handle() to
allow it to be used with other Windows kernel objects.


[SVN r36311]
2006-12-09 22:31:44 +00:00
Christopher Kohlhoff
e3f0c76fce Use static placeholders for VC7.x.
[SVN r36169]
2006-11-23 21:59:10 +00:00
Christopher Kohlhoff
99d1078a15 Add equality/inequality operators for protocol classes.
[SVN r36106]
2006-11-20 12:59:49 +00:00
Christopher Kohlhoff
dca74fd492 Include <ostream> instead of <iostream>.
[SVN r36096]
2006-11-19 21:33:43 +00:00
Christopher Kohlhoff
8d8077a267 Add missing inline keyword, needed to fix multiple definition errors.
[SVN r36095]
2006-11-19 21:33:04 +00:00
Christopher Kohlhoff
b0e159fc55 Add a workaround for an apparent Windows bug where the delivery of
asynchronous I/O completions is delayed if the thread used to start the
operation is CPU bound.


[SVN r36069]
2006-11-17 11:40:48 +00:00
Christopher Kohlhoff
8b56b8cf6d Remove the error::success constant since with the new error_code stuff
there is no unique value for success.


[SVN r36068]
2006-11-17 11:28:18 +00:00
Christopher Kohlhoff
0b9d2dc400 Add ability to specify the level of concurrency desired, which is currently
used by Win32's I/O completion ports.


[SVN r36057]
2006-11-16 11:50:57 +00:00
Christopher Kohlhoff
3cc30008b4 Need to clear error after successful call of WSAAddressToString or
WSAStringToAddress.


[SVN r36056]
2006-11-16 11:49:11 +00:00
Christopher Kohlhoff
e504cf5c6c Remove unnecessary invoke hook since the default one provides the correct
behaviour, and including it here for the invoke_current_handler class breaks
MSVC 7.1 when generating browse information.


[SVN r36055]
2006-11-16 11:47:42 +00:00
Christopher Kohlhoff
837470ac11 Don't use named temporary since it confuses g++ 3.3.
[SVN r36039]
2006-11-14 10:50:18 +00:00
Christopher Kohlhoff
2b7016726f Inclusion of boost/cerrno.hpp is needed, so revert previous change.
[SVN r36038]
2006-11-14 10:49:09 +00:00
Christopher Kohlhoff
94979ba49f Remove documentation that is no longer correct.
[SVN r36037]
2006-11-14 10:41:33 +00:00
Christopher Kohlhoff
fb3eaba113 Change to use function-based placeholders for gcc to avoid some duplicate
symbol linker problems.


[SVN r36036]
2006-11-14 10:40:55 +00:00
Christopher Kohlhoff
e128068a1f Remove unnecessary include.
[SVN r36035]
2006-11-14 10:40:05 +00:00
Christopher Kohlhoff
851d074dd6 The openssl_locking_func() callback can be invoked through
OpenSSL_add_ssl_algorithms(), which causes instance() to be called
recursively before the static shared_ptr was initialized.


[SVN r35942]
2006-11-09 03:04:05 +00:00
Christopher Kohlhoff
852668d1da Change error handling to match TR2 proposal.
[SVN r35911]
2006-11-08 05:32:17 +00:00
Christopher Kohlhoff
da2ef49a00 Add max_size() function to basic_streambuf.
Make basic_io_object constructor protected.

Make a 0-length send or receive on a stream socket into a no-op.

Add cancel() function for cancelling asynchronous socket operations.
The Win32 implementation only works if all operations for the socket
have been issued from the same thread, otherwise it fails with
asio::error::not_supported.

Add workaround for an apparent Windows bug where using getpeername on
a socket accepted using AcceptEx will sometimes return an endpoint
that is all zeroes.

Make a strand last as long as it has any handlers to dispatch. Make
strand a nested class of io_service.

Add io_service() function to io_service::work to return a reference to
the io_service object on which the work is being performed. Renamed
io_service::service::owner() to io_service::service::io_service().

Unset linger object when socket objects are destroyed.

Rename asio_handler_dispatch to asio_handler_invoke.

Rename basic_socketbuf to basic_socket_streambuf.

Update ip::address_v4 and ip::address_v6 classes to match TR2
proposal.

Add run_one(), poll() and poll_one() functions to the io_service.

Remove need to #define FD_SETSIZE on Win32.

Add detection of incorrect inclusion of WinSock.h.

Fix some SSL bugs. Add ability to customise the SSL password callback
function.

Set the reuse_address option by default on acceptors.

The macros FIONREAD and FIONBIO are not integer constants on all
platforms, and so cannot be used as template arguments. Make the
corresponding I/O control commands into proper classes, not templates.

Fixes to better support *BSD platforms.

Add support for buffer debugging, if the standard library supports
iterator debugging (as MSVC8's standard lib does).

Ensure the IOCP queue is drained correctly at shutdown.

Move basic_resolver and resolver service into the ip namespace.

Fix some issues found by the inspect tool.


[SVN r35833]
2006-11-04 07:14:10 +00:00
Christopher Kohlhoff
8e4fa8f544 Maintain separate timer queues for each time traits type.
[SVN r34740]
2006-07-26 11:23:25 +00:00
Christopher Kohlhoff
f7e92ba296 Fix compiler warnings with MSVC8.
[SVN r34739]
2006-07-26 11:19:21 +00:00
Christopher Kohlhoff
1b337d8054 Fix two problems in the SSL implementation:
- A read operation should check the read buffer first to see if there's any
  data present and use that first, before issuing a new read from the
  socket.

- The read buffer was a member of the openssl_operation class, and a new
  openssl_operation object is created for each read or write initiated by
  the application. This meant that any surplus data from a previous read is
  lost. Changed the buffer to be a member of the stream object.


[SVN r34738]
2006-07-26 11:14:12 +00:00
Christopher Kohlhoff
418caa0ef9 Remove tab characters.
[SVN r34725]
2006-07-25 11:01:15 +00:00
Christopher Kohlhoff
72dfeb78e5 Add overloads of read_until and async_read_until that take a string. Fix
bug in regex-based overload of async_read_until.


[SVN r34488]
2006-07-09 07:08:03 +00:00
Christopher Kohlhoff
5e2d09cdf2 Remove redundant code after end of endless for loop.
[SVN r34487]
2006-07-09 06:59:50 +00:00
Christopher Kohlhoff
66ce772f7a Remove accidentally duplicated code. Fix error in conditional expression.
[SVN r34486]
2006-07-09 06:58:54 +00:00
Christopher Kohlhoff
b8e5e53b5f Remove extraneous comma from end of enumerator list.
[SVN r34485]
2006-07-09 06:57:33 +00:00
Christopher Kohlhoff
7027bf39d5 Change strand implementation so that dispatch will execute a handler
immediately if called from within the strand.

Add hook function for customising handler dispatch.

Need to use reinterpret_cast when testing for enable_connection_aborted
socket option, to allow non-int socket options to compile correctly.


[SVN r34464]
2006-07-05 05:48:10 +00:00
Christopher Kohlhoff
27d17b40fb Use correct form for strerror_r on NetBSD.
[SVN r34462]
2006-07-05 05:27:48 +00:00
Christopher Kohlhoff
6171e026e7 Add support for compiling on Mac OS X 10.3.
[SVN r34461]
2006-07-05 05:26:35 +00:00
Christopher Kohlhoff
a0962bfdb5 Automatically define WIN32 for MSVC, since some old Platform SDKs don't
automatically define it, but Winsock2.h requires it.


[SVN r34460]
2006-07-05 05:22:22 +00:00
Christopher Kohlhoff
73ce705d9b Documentation fixes. Clean up basic_streambuf-related functions.
[SVN r34332]
2006-06-18 08:01:10 +00:00
Christopher Kohlhoff
75a90a7723 Fix bug in reactor_op_queue::dispatch_all_operations().
[SVN r34331]
2006-06-18 07:59:26 +00:00
Christopher Kohlhoff
9f8d3f88c6 Ensure synchronous SSL functions call the supplied Error_Handler object.
[SVN r34330]
2006-06-18 07:58:02 +00:00
Christopher Kohlhoff
da0cf5f68a Initial asio checkin.
[SVN r34306]
2006-06-14 22:26:36 +00:00