chris_kohlhoff
f035a66d09
Fix crash.
2006-08-26 02:50:59 +00:00
chris_kohlhoff
7b948b5463
Make a strand last longer as long as it has any handlers to dispatch.
2006-08-26 02:20:58 +00:00
chris_kohlhoff
79f3b9a277
Add a workaround for an apparent Windows bug where using getpeername on a
...
socket accepted using AcceptEx will sometimes return an endpoint that is
all zeroes.
2006-08-23 12:57:22 +00:00
chris_kohlhoff
ac30a366ac
Fix uninitialised data warnings from valgrind.
2006-08-22 11:37:51 +00:00
chris_kohlhoff
21b1476d44
Implement socket operation cancellation on Win32. The cancel call only
...
works if all operations for the socket have been issued from the same
thread, otherwise it fails with asio::error::not_supported.
2006-08-09 14:36:34 +00:00
chris_kohlhoff
5114d916db
Add cancel() function for cancelling asynchronous socket operations. The
...
Win32 implementation simply returns not_supported for now.
2006-08-09 13:59:49 +00:00
chris_kohlhoff
32ed09af84
Make a 0-length send or receive on a stream socket into a no-op.
2006-08-09 11:54:18 +00:00
chris_kohlhoff
79ea0f9a6e
Make basic_io_object constructor protected.
2006-07-31 13:22:37 +00:00
chris_kohlhoff
c2bb2ed399
Add max_size() function.
2006-07-28 12:42:17 +00:00
chris_kohlhoff
4512ae2d9f
Fix MSVC8 warning.
2006-07-28 12:30:25 +00:00
chris_kohlhoff
e6bdc5ba36
Fix compiler warnings with MSVC8.
2006-07-25 10:48:03 +00:00
chris_kohlhoff
a1a9844ed2
Removed spurious code probably left over from a cut-and-paste.
2006-07-24 14:01:27 +00:00
chris_kohlhoff
9dcd7f5282
Add timers examples to documentation, and include them in boost layout
...
package.
2006-07-23 01:23:56 +00:00
chris_kohlhoff
7dfa277052
Missed passing recv_buf to one openssl_operation constructor call.
2006-07-22 00:10:18 +00:00
chris_kohlhoff
874cafad30
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.
2006-07-21 23:04:35 +00:00
chris_kohlhoff
19c52b885c
Don't wrap the time_t time value in a class, just the duration.
2006-07-19 22:39:16 +00:00
chris_kohlhoff
39bc760df1
Add example illustrating a custom timer using GetTickCount().
2006-07-19 14:42:10 +00:00
chris_kohlhoff
25e0214529
Maintain separate timer queues for each time traits type. This is necessary
...
to support a monotonic timer that is not affected by changes to the system
clock.
2006-07-19 13:22:51 +00:00
chris_kohlhoff
3499d7a14b
Add copyright notices.
2006-07-18 11:33:24 +00:00
chris_kohlhoff
30433fa832
Remove tab characters.
2006-07-15 23:09:44 +00:00
chris_kohlhoff
8426976f01
Fix error in socket_base_test rule.
2006-07-14 13:07:01 +00:00
chris_kohlhoff
2b5c989bce
Add overloads of read_until and async_read_until that take a string. Fix
...
bug in regex-based overload of async_read_until.
2006-07-09 06:40:20 +00:00
chris_kohlhoff
0888d19d59
Remove redundant code after end of endless for loop.
2006-07-09 06:24:59 +00:00
chris_kohlhoff
b65b7355a6
Fix error in conditional expression.
2006-07-09 06:17:11 +00:00
chris_kohlhoff
7ca8b8b144
Fix references to member functions.
2006-07-07 07:45:09 +00:00
chris_kohlhoff
4625f28d47
Remove accidentally duplicated code.
2006-07-06 22:44:17 +00:00
chris_kohlhoff
23196b5c79
Remove extraneous comma from end of enumerator list.
2006-07-06 09:57:49 +00:00
chris_kohlhoff
630d4ec8f9
Fix line wrapping in boost-format code.
2006-07-05 06:22:01 +00:00
chris_kohlhoff
6f01b77be4
Add check for NetBSD, which should use the same strerror_r form as Mac OS.
2006-07-03 11:51:27 +00:00
chris_kohlhoff
b6bc1b49c0
Add workaround for Mac OS X 10.3, where the msghdr structure does not
...
follow the POSIX definition.
2006-07-03 11:47:41 +00:00
chris_kohlhoff
620d93da2a
Add dispatch hook name conversion.
2006-07-02 22:23:13 +00:00
chris_kohlhoff
3610229adc
Implement custom dispatch hooking support in the composed async operations
...
async_read, async_read_until and async_write.
2006-07-01 13:15:30 +00:00
chris_kohlhoff
a8e71f37a1
Disable handler dispatch hooking on Borland C++.
2006-06-30 14:48:37 +00:00
chris_kohlhoff
bdf692ea09
Add hook function for customising handler dispatch.
2006-06-30 14:17:08 +00:00
chris_kohlhoff
0a45663170
Automatically #define EV_OOBAND if not already defined, since some older
...
versions of Mac OS X don't define it.
2006-06-29 12:46:53 +00:00
chris_kohlhoff
9085c1a635
Change strand implementation so that dispatch will execute a handler
...
immediately if called from within the strand.
2006-06-28 08:33:26 +00:00
chris_kohlhoff
9b4c45683c
Extend socket_base unit test to catch socket option compile errors.
2006-06-28 07:09:39 +00:00
chris_kohlhoff
b8e3fae33e
Need to use reinterpret_cast when testing for enable_connection_aborted
...
socket option, to allow non-int socket options to compile correctly.
2006-06-27 22:46:12 +00:00
chris_kohlhoff
81fb7d650f
Revert makefile change to define WIN32. Instead WIN32 will be defined
...
automatically by the asio header files.
2006-06-24 13:05:42 +00:00
chris_kohlhoff
c1834b187a
Need to define WIN32 to work with some versions of the Microsoft Platform
...
SDK.
2006-06-23 13:00:56 +00:00
chris_kohlhoff
07e7b9388d
asio version 0.3.7 released
2006-06-20 13:38:28 +00:00
chris_kohlhoff
01362eafe7
Add cygwin to list of supported platforms.
2006-06-19 13:06:20 +00:00
chris_kohlhoff
aa54accf17
Add note about Boost.Regex requirement.
2006-06-18 11:55:17 +00:00
chris_kohlhoff
5151a26c4d
Add HTTP Client to list of examples.
2006-06-18 10:44:42 +00:00
chris_kohlhoff
68e6133d3b
Update boost-layout documentation.
2006-06-18 10:40:47 +00:00
chris_kohlhoff
906727a7c0
Update to doxygen 1.4.7
2006-06-18 07:36:39 +00:00
chris_kohlhoff
f4c6ed69af
Add documentation for forwarding constructors and connect function.
2006-06-18 07:35:49 +00:00
chris_kohlhoff
51f745b066
Add missing include.
2006-06-18 07:08:11 +00:00
chris_kohlhoff
c115a2da9b
Move read/async_read/write/async_write functions for basic_streambuf into
...
the read.hpp and write.hpp header files.
2006-06-18 02:12:54 +00:00
chris_kohlhoff
f50c88ccac
Fix bug in reactor_op_queue::dispatch_all_operations where invoke() was
...
being called on the wrong (and potentially NULL) pointer.
2006-06-17 23:25:55 +00:00