Commit Graph

1359 Commits

Author SHA1 Message Date
Christopher Kohlhoff
1c0c8fa531 Update documentation.
[SVN r36600]
2007-01-06 11:00:01 +00:00
Christopher Kohlhoff
f35b316f44 Add test cases for socket options.
[SVN r36597]
2007-01-06 10:26:17 +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
bc63a367f9 Add BBv2 support.
[SVN r36412]
2006-12-16 02:27:07 +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
7c9fe2a5ac Ensure that what gets thrown is the system_error exception.
[SVN r35947]
2006-11-09 11:21:43 +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
c7f491b73e Fix comment headers to match file names.
[SVN r35941]
2006-11-09 03:02:19 +00:00
Christopher Kohlhoff
852668d1da Change error handling to match TR2 proposal.
[SVN r35911]
2006-11-08 05:32:17 +00:00
Beman Dawes
0e77b9f119 Add copyright, license
[SVN r35905]
2006-11-07 19:11:57 +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
0c65769b47 Add copyright notices.
[SVN r34726]
2006-07-25 11:04:06 +00:00
Christopher Kohlhoff
418caa0ef9 Remove tab characters.
[SVN r34725]
2006-07-25 11:01:15 +00:00
Christopher Kohlhoff
bfa9281e2c Fix error in socket_base_test rule.
[SVN r34534]
2006-07-14 13:07:47 +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
8075fa5a44 Extend socket_base unit test to catch socket option compile errors.
[SVN r34463]
2006-07-05 05:45:48 +00:00
Christopher Kohlhoff
27d17b40fb Use correct form for strerror_r on NetBSD.
[SVN r34462]
2006-07-05 05:27:48 +00:00