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

307 Commits

Author SHA1 Message Date
Christopher Kohlhoff
e918b97ec4 Fix Win64 warnings.
[SVN r58671]
2010-01-04 12:33:42 +00:00
Christopher Kohlhoff
cf516b07a5 Only include implementation headers required for each platform.
[SVN r58652]
2010-01-02 21:38:44 +00:00
Christopher Kohlhoff
c37cae6c1c Add a workaround for some broken Windows firewalls that make a socket
appear bound to 0.0.0.0 when it is in fact bound to 127.0.0.1.


[SVN r58651]
2010-01-02 21:37:10 +00:00
Christopher Kohlhoff
51b0750d54 In getaddrinfo emulation, only check the socket type (SOCK_STREAM or SOCK_DGRAM)
if a service name has been specified. This should allow the emulation to work
with raw sockets.


[SVN r58650]
2010-01-02 21:35:33 +00:00
Christopher Kohlhoff
c2f12c99e0 Use a pool of strand implementations to make copying of strands cheaper.
[SVN r58647]
2010-01-02 20:36:59 +00:00
Christopher Kohlhoff
b5688e37a7 Add boost_ prefix to extern "C" thread entry point function. Refs #3809.
[SVN r58630]
2010-01-02 10:30:41 +00:00
Christopher Kohlhoff
6d8d57aaf0 Ensure that kqueue support is enabled for BSD platforms. Refs #3626.
[SVN r58629]
2010-01-02 10:20:12 +00:00
Christopher Kohlhoff
cf8c031f87 Don't block signals while performing system calls, but instead restart the
calls if they are interrupted.


[SVN r58628]
2010-01-02 09:48:01 +00:00
Christopher Kohlhoff
45acb2f756 Use boost::addressof to get the address of handler objects, rather than
applying operator& directly. Refs #2977.


[SVN r58627]
2010-01-02 08:24:12 +00:00
Christopher Kohlhoff
ee7f4cba38 e specific type_traits headers.
[SVN r58625]
2010-01-02 07:16:41 +00:00
Christopher Kohlhoff
b6fbb66440 Windows needs the OVERLAPPED structure to be valid until both the initiating
function call has returned and the completion packet has been delivered.


[SVN r58624]
2010-01-02 06:09:02 +00:00
Christopher Kohlhoff
20a822c591 Update copyright notices.
[SVN r58623]
2010-01-02 01:24:52 +00:00
Christopher Kohlhoff
c901425aa0 Wrap long line.
[SVN r58621]
2010-01-01 23:04:35 +00:00
Hartmut Kaiser
afa4f59dbb Asio: disabled VC workaround for VC2010 beta2 compiler
[SVN r57393]
2009-11-05 00:26:15 +00:00
Christopher Kohlhoff
58ad4eec91 Clarify that deadline_timer uses a UTC-based clock by default.
[SVN r55670]
2009-08-19 22:44:02 +00:00
Christopher Kohlhoff
328b1a37bf Add missing returns for failure cases in write_some_at and read_some_at.
[SVN r55500]
2009-08-10 11:38:00 +00:00
Christopher Kohlhoff
9b5be8f373 Fix bullet list.
[SVN r55059]
2009-07-21 12:20:28 +00:00
Christopher Kohlhoff
e325c6ffe3 Documentation updates.
[SVN r54916]
2009-07-13 03:38:21 +00:00
Christopher Kohlhoff
ab1a6a09ff Fix compile error when using openssl 1.0 beta. Refs #3256.
[SVN r54907]
2009-07-12 08:16:06 +00:00
Christopher Kohlhoff
5cafa35a16 Don't write to /dev/poll descriptor when there are no pending changes.
[SVN r54845]
2009-07-09 22:58:26 +00:00
Christopher Kohlhoff
261c3962c0 Fix task initialisation.
[SVN r54844]
2009-07-09 22:55:26 +00:00
Christopher Kohlhoff
7f27c0a3a7 Check that WINVER is actually defined when using it.
[SVN r54526]
2009-06-30 08:22:03 +00:00
Christopher Kohlhoff
487d4241b2 Don't rehash if the number of buckets hasn't changed.
[SVN r54525]
2009-06-30 08:19:56 +00:00
Christopher Kohlhoff
4f1faaa224 Sync version number with release branch.
[SVN r54501]
2009-06-29 13:52:31 +00:00
Christopher Kohlhoff
eacb3aefde Treat 0-byte reads and writes as no-ops to comply with the documented type
requirements for SyncReadStream, AsyncReadStream, SyncWriteStream and
AsyncWriteStream.


[SVN r54467]
2009-06-28 13:20:17 +00:00
Christopher Kohlhoff
dcb95b393b Use boost::throw_exception() rather than throw keyword to allow asio to be
used when exception support is disabled. Note that the SSL wrappers still
require exception support. Refs #2754.


[SVN r54400]
2009-06-27 07:52:11 +00:00
Christopher Kohlhoff
fd411319a4 Fix various g++ warnings. Ref #1341.
[SVN r54393]
2009-06-27 07:07:40 +00:00
Christopher Kohlhoff
f36045ab00 Fix custom memory allocation for timers. Ref #3107.
[SVN r54392]
2009-06-27 05:24:16 +00:00
Christopher Kohlhoff
2e4474765b Fix failures reported when the tests are built with _GLIBCXX_DEBUG. Ref #3098.
[SVN r54390]
2009-06-27 02:17:49 +00:00
Christopher Kohlhoff
3ec5f6ed71 Remove a local variable that was hiding the ec parameter and preventing
error codes from being correctly propagated. Ref #3216.


[SVN r54377]
2009-06-26 13:55:24 +00:00
Christopher Kohlhoff
486c8e7931 Fix bug in hash resize. Ref #3095.
[SVN r54376]
2009-06-26 13:35:04 +00:00
Christopher Kohlhoff
c48aa55815 Don't include termios.h unless BOOST_ASIO_HAS_SERIAL_PORT is defined.
Fixes #2917.


[SVN r52478]
2009-04-19 04:15:17 +00:00
Christopher Kohlhoff
1f9ec4a8da POSIX allows successful system calls to modify errno, so always clear the
error_code if the result indicates success. Fixes #2953.


[SVN r52465]
2009-04-18 13:27:53 +00:00
Christopher Kohlhoff
b79f9a65cd Specifically handle the case when an overlapped ReadFile call fails with
ERROR_MORE_DATA. This enables a hack where a windows::stream_handle can be
used with a message-oriented named pipe.


[SVN r52419]
2009-04-16 12:31:27 +00:00
Christopher Kohlhoff
21f70c436b Fix incompatibility between asio and ncurses.h due to the latter defining
a macro called "timeout". Fixes #2156.


[SVN r52412]
2009-04-16 03:27:58 +00:00
Christopher Kohlhoff
0218c0b06b Fix implementation of io_control() so that it adheres to the type
requirements for IoControlCommand. Fixes #2820.


[SVN r52294]
2009-04-09 12:16:02 +00:00
Christopher Kohlhoff
6408f73a8f Prevent memory leaks when an async SSL operation's completion handler throws.
Fixes #2910.


[SVN r52293]
2009-04-09 12:12:50 +00:00
Christopher Kohlhoff
ab2dd63bbe Implement automatic resizing of the bucket array in the internal hash maps.
This is to improve performance for very large numbers of asynchronous
operations and also to reduce memory usage for very small numbers. A new
macro BOOST_ASIO_HASH_MAP_BUCKETS may be used to tweak the sizes used for the
bucket arrays.


[SVN r52292]
2009-04-09 12:09:16 +00:00
Christopher Kohlhoff
5816e90bdb As a performance optimisation, add an explicit check for an empty vector of
timer queues.


[SVN r52291]
2009-04-09 12:04:39 +00:00
Christopher Kohlhoff
28e59ef71c Fix some warnings that occur with MSVC at warning level 4. Fixes #2828.
[SVN r52290]
2009-04-09 12:03:01 +00:00
Christopher Kohlhoff
59a8830f00 Correct documentation of read, read_at, write and write_at functions to
match new CompletionCondition concept. Fixes #2871.


[SVN r52289]
2009-04-09 12:00:36 +00:00
Christopher Kohlhoff
2c6b839435 Prevent locales from affecting the formatting of endpoints. Fixes #2682.
[SVN r52288]
2009-04-09 11:50:42 +00:00
Christopher Kohlhoff
6ce058b229 Update asio version number.
[SVN r50964]
2009-02-02 09:37:10 +00:00
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