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

111 Commits

Author SHA1 Message Date
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