2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-25 14:32:08 +00:00
Commit Graph

264 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::thread::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