chris_kohlhoff
a7d6cbd369
The epoll_wait function can produce EPOLLHUP events for a descriptor even
...
if not specifically requested, resulting in a tight loop of calls to
epoll_wait. Delete a descriptor from epoll if an EPOLLHUP event is
received and there are no registered operations for the descriptor.
2007-10-07 00:00:00 +00:00
chris_kohlhoff
aafc1f76cd
Clean up manifest files.
2007-10-05 01:20:54 +00:00
chris_kohlhoff
f1790a9819
Add #include needed for MinGW.
2007-10-03 01:27:26 +00:00
chris_kohlhoff
d572eed078
Try using an unsigned char for the multicast::enable_loopback socket option
...
when compiling for Tru64.
2007-10-02 21:52:03 +00:00
chris_kohlhoff
d5014e3764
Fix warning on AIX about omitted 'private' keyword when deriving from
...
noncopyable.
2007-09-24 13:25:16 +00:00
chris_kohlhoff
5a39f2c557
Output error codes and error messages when a test fails.
2007-09-24 13:10:03 +00:00
chris_kohlhoff
e3dcb8f4ee
Check whether exceptions are enabled on the output iostream and throw or
...
not throw errors accordingly.
2007-09-24 13:03:50 +00:00
chris_kohlhoff
0bf38cf1dd
Try making the ip::multicast::enable_loopback socket option an unsigned
...
char on AIX.
2007-09-24 13:01:48 +00:00
chris_kohlhoff
6023bfafcb
Fix typo in Win32-specific code.
2007-09-21 12:21:37 +00:00
chris_kohlhoff
624a0ed3b0
Strict compilers don't like it when you pass a function with C linkage
...
as an argument when the parameter type has C++ linkage. Try using the type
of the msghdr::msg_namelen field as an alternative way of deducing the
socklen_t-equivalent type.
2007-09-21 12:16:03 +00:00
chris_kohlhoff
c1d5c89497
Fix some warnings.
2007-09-20 14:25:40 +00:00
chris_kohlhoff
964fe12f95
Fix Win32 test failure.
2007-09-20 13:59:17 +00:00
chris_kohlhoff
bc9861007f
Use correct placement for calling convention specifier.
2007-09-20 13:33:49 +00:00
chris_kohlhoff
bcd07e7839
Fix crash in call_accept().
2007-09-20 13:32:16 +00:00
chris_kohlhoff
cf29f05a17
Eliminate use of types and structure members that may not be present when
...
build for non-XOPEN targets.
2007-09-20 13:20:13 +00:00
chris_kohlhoff
f9eef58374
Some compilers require namespace-scope declarations of use_service,
...
has_service and add_service.
2007-09-20 13:13:33 +00:00
chris_kohlhoff
5741d260b2
Fix unused argument warning.
2007-09-18 13:14:46 +00:00
chris_kohlhoff
bc641c9ee7
Larger storage size needed for Windows x64.
2007-09-16 08:51:14 +00:00
chris_kohlhoff
6f11484d8b
Fix for g++.
2007-09-16 02:17:36 +00:00
chris_kohlhoff
c5c1f1b3a1
Move handler queue management to a separate class.
2007-09-16 02:11:37 +00:00
chris_kohlhoff
cc78be4e41
Add a typedef to bring error_category into the asio namespace.
2007-09-15 13:42:36 +00:00
chris_kohlhoff
6a860bb09a
Use a single safe string copying wrapper.
2007-09-12 14:01:17 +00:00
chris_kohlhoff
c5eb428d74
AIX seems to define the socket address family as an unsigned char rather than unsigned short.
2007-09-12 12:16:43 +00:00
chris_kohlhoff
62fc373652
Add missing #include of error header file.
2007-09-11 11:10:53 +00:00
chris_kohlhoff
07e65e0a9c
Use enum-based error code constants.
2007-09-10 23:23:47 +00:00
chris_kohlhoff
ef08c1514e
Use enum-based error code constants.
2007-09-10 22:42:03 +00:00
chris_kohlhoff
73f7202091
Enable buffer() overload workaround for Sun C++.
2007-09-01 05:44:51 +00:00
chris_kohlhoff
f478dd2916
Add AIX-specific compile time test for whether sockaddr_storage's family
...
field is called ss_family or __ss_family.
2007-09-01 00:20:07 +00:00
chris_kohlhoff
19d03866e8
Need to try binding the acceptor to test whether IPv6 is supported.
2007-09-01 00:17:18 +00:00
chris_kohlhoff
f8d0746080
Don't interrupt an already interrupted task.
2007-08-31 13:45:38 +00:00
chris_kohlhoff
88cad9858c
Ignore errors from shutdown().
2007-08-30 13:54:07 +00:00
chris_kohlhoff
1ea309de5e
Fix deadlock that was a result of other wrapped_handler changes.
2007-08-30 13:10:39 +00:00
chris_kohlhoff
cdb150279c
Fix template parameter names.
2007-08-30 13:10:20 +00:00
chris_kohlhoff
c2957d1adc
Remove need to have a mutex per idle thread.
2007-08-30 12:38:44 +00:00
chris_kohlhoff
d7bf2a4bcd
Fix problem where a thread can go idle even if there are handlers that are
...
ready to be dispatched.
2007-08-30 12:18:33 +00:00
chris_kohlhoff
f37c1af871
Fix io_service::wrap().
2007-08-30 12:16:24 +00:00
chris_kohlhoff
11971795d2
Ensure that a strand is kept alive as long as there are wrapped handlers
...
for it.
2007-08-30 09:42:40 +00:00
chris_kohlhoff
d6432e8be7
Add #include needed for IOV_MAX.
2007-08-30 09:40:16 +00:00
chris_kohlhoff
54a9e0ec86
Fix unused argument warnings.
2007-08-20 14:56:32 +00:00
chris_kohlhoff
aee274eb7a
Use shutdown() for portable graceful connection closure.
2007-08-20 11:48:53 +00:00
chris_kohlhoff
e2ed3daefd
Fix inspect error about unlinked files.
2007-08-19 08:52:01 +00:00
chris_kohlhoff
9795c095c1
Fix inspect errors.
2007-08-19 08:39:40 +00:00
chris_kohlhoff
cd3a59fb05
Clean up some compiler warnings.
2007-08-19 07:43:41 +00:00
chris_kohlhoff
83b784c8d9
Use CancelIoEx if it's available.
2007-08-19 07:33:04 +00:00
chris_kohlhoff
764e4ca12c
Revert to default Windows behaviour for closing a socket, and a note to
...
basic_socket<>::close() indicating that shutdown() should be used for
portable graceful closure.
2007-08-19 03:45:09 +00:00
chris_kohlhoff
c6b0eb3098
Fix order of initialisation problem with error categories.
2007-08-19 03:29:49 +00:00
chris_kohlhoff
3de5095154
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.
2007-08-13 12:32:15 +00:00
chris_kohlhoff
bd6aa8ae6c
Add missing static keyword to the service_id_matches functions.
2007-08-12 22:20:31 +00:00
chris_kohlhoff
f4d1ef5682
Increase number of buffers that may be sent or received in a single
...
operation.
2007-08-09 12:14:18 +00:00
chris_kohlhoff
739cdbf78d
Add a workaround for strange Windows behaviour where closing a socket while
...
there is a pending asynchronous read results in a connection reset error at
the peer.
2007-08-09 11:42:21 +00:00