Commit Graph

817 Commits

Author SHA1 Message Date
chris_kohlhoff
bd2bb49295 Fix removal of timer queue. 2006-10-26 23:05:53 +00:00
chris_kohlhoff
5313a22933 Fix Borland C++ compile. 2006-10-20 00:56:13 +00:00
chris_kohlhoff
87bf747f85 Use preprocessor check for presence or otherwise of wide iostreams. 2006-10-19 22:38:50 +00:00
chris_kohlhoff
089fe502e5 The win_fd_set_size enum value needs to be public. 2006-10-19 21:56:38 +00:00
chris_kohlhoff
adbdd4c29b Fix crash that occurs when multiple threads try to create the
deadline_timer_service simultaneously.
2006-10-19 16:42:03 +00:00
chris_kohlhoff
c1daa84872 Remove spurious return keyword. 2006-10-19 00:10:24 +00:00
chris_kohlhoff
62ecb2bfa2 Fix line length. 2006-10-17 18:46:06 +00:00
chris_kohlhoff
2f9be7dfd3 Add FreeBSD support. 2006-10-06 14:50:32 +00:00
chris_kohlhoff
f367bbdc4c GetQueuedCompletionStatus has only failed if it returns FALSE and the
overlapped pointer is NULL.
2006-10-04 21:43:43 +00:00
chris_kohlhoff
9bdef5f755 gethostname must be outside the emulation-only block. 2006-10-04 13:18:41 +00:00
chris_kohlhoff
3c85744cc2 Remove reference to non-POSIX EAI_NODATA. 2006-10-04 13:01:22 +00:00
chris_kohlhoff
5eec9a48fd NetBSD, FreeBSD and OpenBSD all use the same form of strerror_r. 2006-10-04 12:54:58 +00:00
chris_kohlhoff
b3b59ec6aa Only wrap gethostbyname, gethostbyaddr and friends if needed for emulation
of getaddrinfo and getnameinfo.
2006-10-04 12:53:52 +00:00
chris_kohlhoff
fad39a97df The macros FIONREAD and FIONBIO are not integer constants on all platforms,
and so cannot be used as template arguments.
2006-10-02 12:27:57 +00:00
chris_kohlhoff
a703d37853 Set the reuse_address option by default on acceptors. 2006-09-26 22:54:46 +00:00
chris_kohlhoff
c3cbe97663 Add ability to customise the SSL password callback function. 2006-09-24 07:46:23 +00:00
chris_kohlhoff
ef57c011e3 Need to use ERR_get_error() to get system error code. 2006-09-24 06:56:25 +00:00
chris_kohlhoff
f6bdcd5cba #ifdef out code that is not appropriate depending on platform. 2006-09-23 23:41:58 +00:00
chris_kohlhoff
0128fec193 Add detection of incorrect inclusion of WinSock.h. 2006-09-23 23:28:17 +00:00
chris_kohlhoff
b9438097bf Remove need to #define FD_SETSIZE on Win32. 2006-09-23 23:08:17 +00:00
chris_kohlhoff
e7974e1540 Add run_one(), poll() and poll_one() functions to the io_service. 2006-09-20 13:23:22 +00:00
chris_kohlhoff
acc304b757 Fix <= and >= operators. 2006-09-19 11:11:39 +00:00
chris_kohlhoff
7b16e585c3 Update address_v6 functions to match proposal. 2006-09-13 13:42:54 +00:00
chris_kohlhoff
c68910fd8d Add all comparison operators. 2006-09-13 13:42:34 +00:00
chris_kohlhoff
b7095e2b7c Update ip::address_v4 functions to match functions in TR2 proposal. 2006-09-13 07:15:40 +00:00
chris_kohlhoff
a5d344161e Win64 fixes. 2006-09-12 13:10:16 +00:00
chris_kohlhoff
7cac1ec74e Fix some memory leaks. 2006-09-11 11:26:33 +00:00
chris_kohlhoff
54659f8afe Rename basic_socketbuf to basic_socket_streambuf. 2006-09-10 11:13:00 +00:00
chris_kohlhoff
ef83ac60a7 Make strand a nested class of io_service. 2006-09-10 10:31:33 +00:00
chris_kohlhoff
e5fcb737d4 Rename asio_handler_dispatch to asio_handler_invoke. 2006-09-10 07:50:17 +00:00
chris_kohlhoff
e7a49fda71 Unset linger option when socket objects are destroyed. 2006-09-10 04:20:24 +00:00
chris_kohlhoff
137b63b8ed Temporary fix to better handle SSL_ERROR_SYSCALL. 2006-09-10 02:57:59 +00:00
chris_kohlhoff
ea9fb10af5 Fix to compile with Borland C++. 2006-08-26 08:58:27 +00:00
chris_kohlhoff
133ad40b4c Add io_service() function to io_service::work to return a reference to
the io_service object on which the work is being performed. Renamed
io_service::service::owner() to io_service::service::io_service().
2006-08-26 08:36:28 +00:00
chris_kohlhoff
f035a66d09 Fix crash. 2006-08-26 02:50:59 +00:00
chris_kohlhoff
7b948b5463 Make a strand last longer as long as it has any handlers to dispatch. 2006-08-26 02:20:58 +00:00
chris_kohlhoff
79f3b9a277 Add a workaround for an apparent Windows bug where using getpeername on a
socket accepted using AcceptEx will sometimes return an endpoint that is
all zeroes.
2006-08-23 12:57:22 +00:00
chris_kohlhoff
ac30a366ac Fix uninitialised data warnings from valgrind. 2006-08-22 11:37:51 +00:00
chris_kohlhoff
21b1476d44 Implement socket operation cancellation on Win32. The cancel call only
works if all operations for the socket have been issued from the same
thread, otherwise it fails with asio::error::not_supported.
2006-08-09 14:36:34 +00:00
chris_kohlhoff
5114d916db Add cancel() function for cancelling asynchronous socket operations. The
Win32 implementation simply returns not_supported for now.
2006-08-09 13:59:49 +00:00
chris_kohlhoff
32ed09af84 Make a 0-length send or receive on a stream socket into a no-op. 2006-08-09 11:54:18 +00:00
chris_kohlhoff
79ea0f9a6e Make basic_io_object constructor protected. 2006-07-31 13:22:37 +00:00
chris_kohlhoff
c2bb2ed399 Add max_size() function. 2006-07-28 12:42:17 +00:00
chris_kohlhoff
4512ae2d9f Fix MSVC8 warning. 2006-07-28 12:30:25 +00:00
chris_kohlhoff
e6bdc5ba36 Fix compiler warnings with MSVC8. 2006-07-25 10:48:03 +00:00
chris_kohlhoff
a1a9844ed2 Removed spurious code probably left over from a cut-and-paste. 2006-07-24 14:01:27 +00:00
chris_kohlhoff
9dcd7f5282 Add timers examples to documentation, and include them in boost layout
package.
2006-07-23 01:23:56 +00:00
chris_kohlhoff
7dfa277052 Missed passing recv_buf to one openssl_operation constructor call. 2006-07-22 00:10:18 +00:00
chris_kohlhoff
874cafad30 Fix two problems in the SSL implementation:
- A read operation should check the read buffer first to see if there's any
  data present and use that first, before issuing a new read from the
  socket.

- The read buffer was a member of the openssl_operation class, and a new
  openssl_operation object is created for each read or write initiated by
  the application. This meant that any surplus data from a previous read is
  lost. Changed the buffer to be a member of the stream object.
2006-07-21 23:04:35 +00:00
chris_kohlhoff
19c52b885c Don't wrap the time_t time value in a class, just the duration. 2006-07-19 22:39:16 +00:00