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

193 Commits

Author SHA1 Message Date
Christopher Kohlhoff
23c4f7061d Add raw socket support.
[SVN r44849]
2008-04-28 13:36:18 +00:00
Christopher Kohlhoff
bfda1481e0 Update asio version number.
[SVN r44848]
2008-04-28 13:35:27 +00:00
Christopher Kohlhoff
8768d9dff1 Fix or suppress MSVC level 4 warnings. Fixes #1703.
[SVN r44727]
2008-04-22 23:46:15 +00:00
Christopher Kohlhoff
482e083b76 Remove a local variable that was hiding the ec parameter and preventing
error codes from being correctly propagated. Fixes #1820.


[SVN r44679]
2008-04-21 05:52:20 +00:00
Christopher Kohlhoff
ee449aa163 Add new wrapper classes for stream-oriented handles on Windows.
[SVN r44676]
2008-04-21 05:32:34 +00:00
Christopher Kohlhoff
1ef42e04c6 Add new wrapper classes for stream-oriented file descriptors on POSIX platforms.
[SVN r44675]
2008-04-21 05:16:15 +00:00
Christopher Kohlhoff
f784e54ced Add support for UNIX domain sockets.
[SVN r44674]
2008-04-21 04:43:05 +00:00
Christopher Kohlhoff
a277af13a5 Add a special null_buffers type that allows read and write operations to
be used to indicate the socket's readiness to read or write without
blocking.


[SVN r44673]
2008-04-21 04:02:37 +00:00
Christopher Kohlhoff
5d44c01796 Improve documentation for the protected functions and data in basic_io_object<>.
[SVN r44670]
2008-04-21 02:01:34 +00:00
Christopher Kohlhoff
2ae65fbd27 Fix infinite recursion in the ssl::stream's shutdown() implementation.
[SVN r44668]
2008-04-21 01:42:10 +00:00
Christopher Kohlhoff
1a12b931f9 Update version number to match release.
[SVN r44667]
2008-04-21 01:41:29 +00:00
Christopher Kohlhoff
9af5979e38 Improve efficiency of basic_streambuf::consume() by using a single call to
gbump() rather than calling sbumpc() in a loop.


[SVN r44666]
2008-04-21 01:39:06 +00:00
Christopher Kohlhoff
ee4e432de1 Ensure that timer dispatching responsibility is correctly relinquished when
processing leftover interrupts from a previous run invocation.


[SVN r44663]
2008-04-21 01:27:48 +00:00
Christopher Kohlhoff
64b08a01c4 Add ability to disable the uses of the typeid operator by defining
BOOST_NO_TYPEID or BOOST_ASIO_NO_TYPEID.


[SVN r44662]
2008-04-21 01:23:42 +00:00
Christopher Kohlhoff
5ba249c3d1 Fix double-free error that occurs when an exception is thrown from a
handler that has been dispatched (i.e. not posted) through a strand.


[SVN r43879]
2008-03-27 14:18:07 +00:00
Christopher Kohlhoff
adab7d88e0 Fix incorrect use of sin_port with a sockaddr_in6 structure.
[SVN r43586]
2008-03-13 06:59:02 +00:00
Christopher Kohlhoff
7c43ea9399 Use unions to fix a sockaddr_storage aliasing problem that shows up with
g++ 4.3.0.


[SVN r43570]
2008-03-12 13:26:41 +00:00
Christopher Kohlhoff
301f79a384 Revert to having the windows-bug workaround (short timeout on
GetQueuedCompletionStatus) on all threads as there are still scenarios
where threads can get stuck indefinitely.


[SVN r43569]
2008-03-12 13:25:49 +00:00
Christopher Kohlhoff
f99a3cb814 Update copyright notices.
[SVN r43472]
2008-03-03 14:05:35 +00:00
Christopher Kohlhoff
7df2a57eef Add missing 'boost_' prefix to helper namespace.
[SVN r43470]
2008-03-03 13:27:06 +00:00
Christopher Kohlhoff
002ebea1e3 Disable use of CancelIo by default, due to the possibility of silent
failure on some system configurations. Swallow error returned by CancelIoEx
if there are no operations to be cancelled.


[SVN r43469]
2008-03-03 13:21:05 +00:00
Christopher Kohlhoff
61bcc0b5ec Add missing tie().
[SVN r43437]
2008-02-29 12:57:57 +00:00
Christopher Kohlhoff
5b09097082 Use the correct vector of timer queues when dispatching timers.
[SVN r43377]
2008-02-22 22:43:54 +00:00
Christopher Kohlhoff
8e218007b0 Add missing #include of socket_types.hpp needed for the SSL unit tests
to compile successfully on Windows.


[SVN r43303]
2008-02-18 13:35:15 +00:00
Christopher Kohlhoff
697ef44e1c The latest Windows SDKs don't support IPv6 when building for Windows 2000,
so we need to use the SDK emulation in that case.


[SVN r43056]
2008-02-02 12:02:23 +00:00
Christopher Kohlhoff
57f75e9a24 Fix "possible loss of data" warning when building for Windows 2000 targets.
[SVN r43055]
2008-02-02 11:39:17 +00:00
Christopher Kohlhoff
f50757120a Ensure that the workaround for the MSVC secure iterator problem is only
used when compiling with MSVC. The workaround causes g++'s library debug
mode to report errors due to the assignment from a singular iterator.


[SVN r43054]
2008-02-02 11:37:45 +00:00
Christopher Kohlhoff
0b26077356 Set the openssl callback function for getting a thread ID.
[SVN r42817]
2008-01-16 13:46:01 +00:00
Christopher Kohlhoff
1f215cd262 Check for truncation when converting buffer size from size_t to openssl's
int argument.

Try to fix possible thread-safety issues in SSL wrapper.


[SVN r42759]
2008-01-14 13:29:08 +00:00
Christopher Kohlhoff
0841027789 Silence some integer truncation warnings.
Only perform the windows-bug workaround where we use a short timeout with
GetQueuedCompletionStatus from one thread, i.e. the timer thread.

Keep track of the number of OVERLAPPED-derived operations to ensure that
they all get cleaned up when the io_service is destroyed.


[SVN r42758]
2008-01-14 13:27:52 +00:00
Christopher Kohlhoff
95e7a5a83f Silence some integer truncation warnings.
[SVN r42756]
2008-01-14 13:25:24 +00:00
Christopher Kohlhoff
d02ff9fd31 Don't call epoll_wait/kevent if there are no old operations (where old means
added prior to the last epoll_wait/kevent call) needing to be demultiplexed.


[SVN r42755]
2008-01-14 13:24:28 +00:00
Christopher Kohlhoff
66e7e8235b Disable noisy and incorrect /Wp64 warnings generated by MSVC.
[SVN r42754]
2008-01-14 13:22:21 +00:00
Christopher Kohlhoff
0481bc277b Don't include sys/time.h when compiling with aCC, as that header does not
supply pselect(), which is needed for HP-UX/aCC to work correctly.


[SVN r42753]
2008-01-14 13:21:37 +00:00
Christopher Kohlhoff
e73e772d7f Add missing broken pipe error.
[SVN r42752]
2008-01-14 13:20:06 +00:00
Christopher Kohlhoff
30db47b9f8 Documentation fixes.
[SVN r42121]
2007-12-17 13:17:46 +00:00
Christopher Kohlhoff
197952d66b Bump version number.
[SVN r42120]
2007-12-17 13:08:10 +00:00
Christopher Kohlhoff
808e0862ba Fixes for older HP-UX.
[SVN r42119]
2007-12-17 13:04:30 +00:00
Christopher Kohlhoff
931e25063d Suppress signed/unsigned warning.
[SVN r41868]
2007-12-08 13:48:52 +00:00
Christopher Kohlhoff
8d4d725277 Try to fix stall when sending large amounts of data over SSL.
[SVN r41823]
2007-12-07 12:53:39 +00:00
Christopher Kohlhoff
1c123accd8 Don't use deprecated function workaround when compiling for Windows CE.
[SVN r41762]
2007-12-05 21:46:19 +00:00
Christopher Kohlhoff
312551ab47 Prevent deprecated function warnings for MSVC >= 8.
[SVN r41701]
2007-12-04 21:28:42 +00:00
Christopher Kohlhoff
1172215e3d Make async operations fail with an error if the socket descriptor doesn't
fit into the select call's fd_set.


[SVN r41432]
2007-11-28 13:26:33 +00:00
Beman Dawes
7ba40bdcb8 // Add or correct comment identifying Boost library this header is associated with.
[SVN r41173]
2007-11-17 20:13:16 +00:00
Christopher Kohlhoff
5c14db353b Try to fix an order-of-initialisation problem with error_category references.
The symptom, which only occurs in some applications, is a crash due to a
dereference of a null pointer. The exact conditions under which the problem
occurs are not fully understood, so this fix is probably more paranoid than
necessary.


[SVN r41100]
2007-11-15 06:19:04 +00:00
Christopher Kohlhoff
45add4d11e Add a workaround for MSVC secure iterator problem where allowing the
destruction of an iterator to an already-destroyed string object results in
a program crash. Revert previous change to destroy buffers prior to
invoking the handler since it didn't fix the problem and wasn't cleaning
up all copies of the buffers anyway.


[SVN r41059]
2007-11-13 12:50:27 +00:00
Christopher Kohlhoff
970375748c Cannot perform concurrent operations on the /dev/poll descriptor where
the sockets descriptors involved may already be being waited on. Changed
the dev_poll_reactor class to keep a vector of pending event changes and
interrupt the /dev/poll ioctl() wait to apply it.


[SVN r41028]
2007-11-12 12:07:39 +00:00
Christopher Kohlhoff
7de155b732 Fix timer stalls.
[SVN r40924]
2007-11-08 07:52:49 +00:00
Christopher Kohlhoff
1086746c7d Eliminate the need for an extra thread to perform timer dispatching.
[SVN r40919]
2007-11-08 04:10:14 +00:00
Christopher Kohlhoff
556cbac864 Don't set errno when building for Windows targets. Should fix WinCE build.
[SVN r40779]
2007-11-05 11:52:52 +00:00