2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-28 06:42:08 +00:00
Commit Graph

106 Commits

Author SHA1 Message Date
Christopher Kohlhoff
a70528c9be Merge from trunk.
........
  r62497 | chris_kohlhoff | 2010-06-07 09:28:58 +1000 (Mon, 07 Jun 2010) | 2 lines
  
  Fix handling of small but non-zero timeouts. Fixes #4205.
........
  r62499 | chris_kohlhoff | 2010-06-07 10:00:45 +1000 (Mon, 07 Jun 2010) | 2 lines
  
  Reworked implementation MkII.
  Also fixes #4170.
........
  r62530 | chris_kohlhoff | 2010-06-08 09:24:28 +1000 (Tue, 08 Jun 2010) | 2 lines
  
  Fixes for MSVC 7.1, Borland.
........
  r62531 | chris_kohlhoff | 2010-06-08 09:29:05 +1000 (Tue, 08 Jun 2010) | 2 lines
  
  Some changes for Symbian support.
........
  r62549 | chris_kohlhoff | 2010-06-08 14:27:26 +1000 (Tue, 08 Jun 2010) | 2 lines
  
  Fix typo in tutorial. Fixes #4252.
........
  r62556 | chris_kohlhoff | 2010-06-08 19:01:39 +1000 (Tue, 08 Jun 2010) | 2 lines
  
  Ensure unsigned char is used with isdigit. Fixes #4201.
........
  r62558 | chris_kohlhoff | 2010-06-08 21:01:57 +1000 (Tue, 08 Jun 2010) | 2 lines
  
  Fix handling of empty buffer sequences.
........


[SVN r62644]
2010-06-09 09:40:46 +00:00
Christopher Kohlhoff
0f5629d445 Reworked implementation MkII
[SVN r62499]
2010-06-07 00:00:45 +00:00
Christopher Kohlhoff
eb1c2b560a Merge from trunk.
........
  r60681 | chris_kohlhoff | 2010-03-18 12:32:34 +1100 (Thu, 18 Mar 2010) | 3 lines
  
  Define NOMINMAX for all Windows compilers, not just Cygwin. Users can define
  BOOST_ASIO_NO_NOMINMAX to suppress this definition. Fixes #3901.
........
  r60687 | chris_kohlhoff | 2010-03-18 17:23:38 +1100 (Thu, 18 Mar 2010) | 4 lines
  
  Use a bitmask type for the resolver flags, as per the TR2 proposal. This will
  prevent implicit conversion from int to flags, allowing the compiler to catch
  cases where users incorrectly pass a numeric port number as the service name.
........
  r60689 | chris_kohlhoff | 2010-03-18 22:08:19 +1100 (Thu, 18 Mar 2010) | 2 lines
  
  Fix bug where 0-byte reads were incorrectly passing an eof error_code to the handler. Fixes #4023.
........
  r60705 | chris_kohlhoff | 2010-03-20 00:08:04 +1100 (Sat, 20 Mar 2010) | 3 lines
  
  Fix epoll_reactor bug where cancelled operations would complete with a
  "success" error_code.
........
  r60717 | chris_kohlhoff | 2010-03-20 10:23:28 +1100 (Sat, 20 Mar 2010) | 2 lines
  
  More extensive read and write tests.
........
  r60722 | chris_kohlhoff | 2010-03-20 10:57:50 +1100 (Sat, 20 Mar 2010) | 2 lines
  
  WinCE doesn't provide InitializeCriticalSectionAndSpinCount.
........
  r60723 | chris_kohlhoff | 2010-03-20 10:58:48 +1100 (Sat, 20 Mar 2010) | 2 lines
  
  Fix cancellation.
........
  r60725 | chris_kohlhoff | 2010-03-20 10:59:48 +1100 (Sat, 20 Mar 2010) | 3 lines
  
  Use cancel() to avoid Windows behaviour where a connection is reset if the
  socket is closed while there is a pending read operation.
........


[SVN r60741]
2010-03-21 09:39:26 +00:00
Christopher Kohlhoff
abaadc5436 Use cancel() to avoid Windows behaviour where a connection is reset if the
socket is closed while there is a pending read operation.


[SVN r60725]
2010-03-19 23:59:48 +00:00
Christopher Kohlhoff
b80ddc1935 More extensive read and write tests.
[SVN r60717]
2010-03-19 23:23:28 +00:00
Christopher Kohlhoff
4ab0d73c10 Fix epoll_reactor bug where cancelled operations would complete with a
"success" error_code.


[SVN r60705]
2010-03-19 13:08:04 +00:00
Christopher Kohlhoff
1683a90e86 Fix bug where 0-byte reads were incorrectly passing an eof error_code to the handler. Refs #4023.
[SVN r60689]
2010-03-18 11:08:19 +00:00
Christopher Kohlhoff
c2c1f2a507 Merge from trunk. Fixes #3743, #3670, #3822.
........
  r58670 | chris_kohlhoff | 2010-01-04 23:33:04 +1100 (Mon, 04 Jan 2010) | 2 lines
  
  Fix example to compile with MSVC 10 beta 2.
........
  r58671 | chris_kohlhoff | 2010-01-04 23:33:42 +1100 (Mon, 04 Jan 2010) | 2 lines
  
  Fix Win64 warnings.
........
  r58703 | chris_kohlhoff | 2010-01-05 22:51:41 +1100 (Tue, 05 Jan 2010) | 3 lines
  
  Include boost/limits.hpp rather than <limits>, to support older compilers.
  Refs #3743.
........
  r58704 | chris_kohlhoff | 2010-01-05 23:20:10 +1100 (Tue, 05 Jan 2010) | 2 lines
  
  Drop back to second_clock if microsec_clock is unavailable. Refs #3743.
........
  r58705 | chris_kohlhoff | 2010-01-05 23:50:39 +1100 (Tue, 05 Jan 2010) | 2 lines
  
  Use sockatmark if SIOCATMARK is not defined. Refs #3743.
........
  r58740 | chris_kohlhoff | 2010-01-06 13:38:39 +1100 (Wed, 06 Jan 2010) | 2 lines
  
  Use buffer debugging workaround with MSVC 8 only.
........
  r58761 | chris_kohlhoff | 2010-01-06 23:27:05 +1100 (Wed, 06 Jan 2010) | 2 lines
  
  Disable iostreams-related functionality if BOOST_NO_IOSTREAMS is defined. Refs #3743.
........
  r58762 | chris_kohlhoff | 2010-01-06 23:36:51 +1100 (Wed, 06 Jan 2010) | 2 lines
  
  Apply fix for reported excessive CPU usage under Solaris. Refs #3670.
........
  r58782 | chris_kohlhoff | 2010-01-07 09:44:48 +1100 (Thu, 07 Jan 2010) | 2 lines
  
  Disable handler allocation and invocation hooks on g++ 2.x. Refs #3743.
........
  r58793 | chris_kohlhoff | 2010-01-08 09:18:16 +1100 (Fri, 08 Jan 2010) | 2 lines
  
  Support platforms that don't define INET6_ADDRSTRLEN. Refs #3743.
........


[SVN r58883]
2010-01-11 02:34:00 +00:00
Christopher Kohlhoff
a53c811edb Drop back to second_clock if microsec_clock is unavailable. Refs #3743.
[SVN r58704]
2010-01-05 12:20:10 +00:00
Christopher Kohlhoff
e97ac69ad8 Merge from trunk.
........
  r57393 | hkaiser | 2009-11-05 11:26:15 +1100 (Thu, 05 Nov 2009) | 1 line
  
  Asio: disabled VC workaround for VC2010 beta2 compiler. Fixes #3796.
........
  r58621 | chris_kohlhoff | 2010-01-02 10:04:35 +1100 (Sat, 02 Jan 2010) | 2 lines
  
  Wrap long line.
........
  r58624 | chris_kohlhoff | 2010-01-02 17:09:02 +1100 (Sat, 02 Jan 2010) | 3 lines
  
  Windows needs the OVERLAPPED structure to be valid until both the initiating
  function call has returned and the completion packet has been delivered.
........
  r58625 | chris_kohlhoff | 2010-01-02 18:16:41 +1100 (Sat, 02 Jan 2010) | 2 lines
  
  Use specific type_traits headers.
........
  r58626 | chris_kohlhoff | 2010-01-02 18:18:09 +1100 (Sat, 02 Jan 2010) | 2 lines
  
  Include specific headers in unit tests rather than the convenience header asio.hpp.
........
  r58627 | chris_kohlhoff | 2010-01-02 19:24:12 +1100 (Sat, 02 Jan 2010) | 3 lines
  
  Use boost::addressof to get the address of handler objects, rather than
  applying operator& directly. Fixes #2977.
........
  r58628 | chris_kohlhoff | 2010-01-02 20:48:01 +1100 (Sat, 02 Jan 2010) | 3 lines
  
  Don't block signals while performing system calls, but instead restart the
  calls if they are interrupted.
........
  r58629 | chris_kohlhoff | 2010-01-02 21:20:12 +1100 (Sat, 02 Jan 2010) | 2 lines
  
  Ensure that kqueue support is enabled for BSD platforms. Fixes #3626.
........
  r58630 | chris_kohlhoff | 2010-01-02 21:30:41 +1100 (Sat, 02 Jan 2010) | 2 lines
  
  Add boost_ prefix to extern "C" thread entry point function. Fixes #3809.
........
  r58647 | chris_kohlhoff | 2010-01-03 07:36:59 +1100 (Sun, 03 Jan 2010) | 2 lines
  
  Use a pool of strand implementations to make copying of strands cheaper.
........
  r58650 | chris_kohlhoff | 2010-01-03 08:35:33 +1100 (Sun, 03 Jan 2010) | 4 lines
  
  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.
........
  r58651 | chris_kohlhoff | 2010-01-03 08:37:10 +1100 (Sun, 03 Jan 2010) | 3 lines
  
  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.
........
  r58652 | chris_kohlhoff | 2010-01-03 08:38:44 +1100 (Sun, 03 Jan 2010) | 2 lines
  
  Only include implementation headers required for each platform.
........


[SVN r58669]
2010-01-04 11:55:09 +00:00
Christopher Kohlhoff
df91035ff5 Update copyright notices.
[SVN r58666]
2010-01-04 09:36:00 +00:00
Christopher Kohlhoff
235e35039d Include specific headers in unit tests rather than the convenience header asio.hpp.
[SVN r58626]
2010-01-02 07:18:09 +00:00
Christopher Kohlhoff
20a822c591 Update copyright notices.
[SVN r58623]
2010-01-02 01:24:52 +00:00
Troy D. Straszheim
da33675b44 rm cmake from trunk. I'm not entirely sure this is necessary to satisfy the inspect script, but I'm not taking any chances, and it is easy to put back
[SVN r56942]
2009-10-17 02:07:38 +00:00
Troy D. Straszheim
4cd8a968f8 rm cmake from the release branch before it goes out broken. Policy dictates that you never commit to release, you commit to trunk and merge to release.
[SVN r56941]
2009-10-17 01:10:45 +00:00
Troy D. Straszheim
320ddd3c12 Copyrights on CMakeLists.txt to keep them from clogging up the inspect
reports.  This is essentially the same commit as r55095 on the release
branch.



[SVN r55159]
2009-07-26 00:49:56 +00:00
Troy D. Straszheim
915a148910 Add basic copyright/license to keep cmake out of the inspection report
[SVN r55095]
2009-07-22 21:51:01 +00:00
Christopher Kohlhoff
2c41e180c1 Merge from trunk. Fixes #3095, #3216, #3098, #3107, #1341, #2754, #3157, #2620, #2618.
........
  r54373 | chris_kohlhoff | 2009-06-26 21:03:14 +1000 (Fri, 26 Jun 2009) | 2 lines
  
  Fix doc generation for array reference parameters.
........
  r54376 | chris_kohlhoff | 2009-06-26 23:35:04 +1000 (Fri, 26 Jun 2009) | 2 lines
  
  Fix bug in hash resize. Ref #3095.
........
  r54377 | chris_kohlhoff | 2009-06-26 23:55:24 +1000 (Fri, 26 Jun 2009) | 3 lines
  
  Remove a local variable that was hiding the ec parameter and preventing
  error codes from being correctly propagated. Ref #3216.
........
  r54390 | chris_kohlhoff | 2009-06-27 12:17:49 +1000 (Sat, 27 Jun 2009) | 2 lines
  
  Fix failures reported when the tests are built with _GLIBCXX_DEBUG. Ref #3098.
........
  r54392 | chris_kohlhoff | 2009-06-27 15:24:16 +1000 (Sat, 27 Jun 2009) | 2 lines
  
  Fix custom memory allocation for timers. Ref #3107.
........
  r54393 | chris_kohlhoff | 2009-06-27 17:07:40 +1000 (Sat, 27 Jun 2009) | 2 lines
  
  Fix various g++ warnings. Ref #1341.
........
  r54400 | chris_kohlhoff | 2009-06-27 17:52:11 +1000 (Sat, 27 Jun 2009) | 4 lines
  
  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.
........
  r54407 | chris_kohlhoff | 2009-06-27 19:13:24 +1000 (Sat, 27 Jun 2009) | 2 lines
  
  Make links to function overloads more obvious.
........
  r54466 | chris_kohlhoff | 2009-06-28 23:07:43 +1000 (Sun, 28 Jun 2009) | 2 lines
  
  Add header file information to reference docs. Refs #3157.
........
  r54467 | chris_kohlhoff | 2009-06-28 23:20:17 +1000 (Sun, 28 Jun 2009) | 4 lines
  
  Treat 0-byte reads and writes as no-ops to comply with the documented type
  requirements for SyncReadStream, AsyncReadStream, SyncWriteStream and
  AsyncWriteStream.
........
  r54498 | chris_kohlhoff | 2009-06-29 19:32:41 +1000 (Mon, 29 Jun 2009) | 2 lines
  
  Add enum values to doc index. Refs #2620.
........


[SVN r54499]
2009-06-29 13:36:06 +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
486c8e7931 Fix bug in hash resize. Ref #3095.
[SVN r54376]
2009-06-26 13:35:04 +00:00
Troy D. Straszheim
ab5851e1f6 asio cmake test fixes
[SVN r53162]
2009-05-21 21:27:01 +00:00
Troy D. Straszheim
9a908c4fdb tune up link tests in general, asio tests specifically
[SVN r53147]
2009-05-21 00:31:35 +00:00
Troy D. Straszheim
065dbc20f8 This makes asio link tests pass, accomplishes two things:
* Communicates CMAKE_CXX_COMPILER correctly to subprocess (via
load_cache which may be a bad idea)

* Manually (yuck) pulls the paths of libraries that the link tests
  must link against out of the target properties and passes them to
  the linktest subprocess













[SVN r53140]
2009-05-20 18:33:38 +00:00
Troy D. Straszheim
1be1f69229 HTF did I miss this endforeach()
[SVN r53041]
2009-05-15 23:25:07 +00:00
Troy D. Straszheim
5a86b17443 cleanup of asio tests in cmakeland... link tests still broken
[SVN r53011]
2009-05-15 01:49:26 +00:00
Troy D. Straszheim
b895ac7f57 cleanup of asio tests in cmakeland... link tests still broken
[SVN r53010]
2009-05-15 01:49:06 +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
e5a0230dbc Need to specify socket lib to link correctly on QNX. Fixes #2504.
[SVN r50943]
2009-02-01 11:37:18 +00:00
Michael A. Jackson
02ac45ba96 Updating CMake files to latest trunk. Added dependency information for regression tests and a few new macros for internal use.
[SVN r49627]
2008-11-07 17:02:56 +00:00
Christopher Kohlhoff
96fcff70f2 Fix problem in read_until's match_condition handling when the delimiter
lies at the end of the data.


[SVN r49482]
2008-10-29 12:49:05 +00:00
Christopher Kohlhoff
aea347d0a7 Add const overloads of the lowest_layer member functions.
[SVN r48535]
2008-09-02 11:34:18 +00:00
Christopher Kohlhoff
4696ee9033 Add class to allow use of arbitrary Windows overlapped I/O operations.
[SVN r48495]
2008-08-31 11:38:52 +00:00
Christopher Kohlhoff
2f86d9c815 Don't build serial port test code when serial ports are not available.
[SVN r48490]
2008-08-31 08:58:49 +00:00
Christopher Kohlhoff
bb6bfd4b5a Change the CompletionCondition concept so that:
- It is now evaluated before the first call to the underlying
  *_some() operation, as well as after every operation.
- The return value is a number of bytes, which indicates the maximum
  length to be transferred on the subsequent *_some() operation. If
  the return value is 0 then the composed operation completes.

Add missing unit tests for read_at and write_at.


[SVN r48418]
2008-08-28 12:11:47 +00:00
Christopher Kohlhoff
de4cfeb523 Use get_io_service() rather than deprecated io_service() function.
[SVN r48417]
2008-08-28 12:09:09 +00:00
Christopher Kohlhoff
10e8419c7e Some linux configurations do not automatically define _XOPEN_SOURCE.
[SVN r46876]
2008-06-30 00:24:44 +00:00
Christopher Kohlhoff
43e62310b6 Add new overloads for read_until and async_read_until that invoke a
user-defined function object to determine when a match has been found.


[SVN r46475]
2008-06-18 13:03:46 +00:00
Christopher Kohlhoff
1539f2c8a1 Add an iterator for bytewise traversal of a buffer sequence.
[SVN r46415]
2008-06-16 00:41:29 +00:00
Christopher Kohlhoff
fa82af9e16 Add random-access handles for use on Windows.
[SVN r46319]
2008-06-11 11:17:53 +00:00
Christopher Kohlhoff
7e062f298d Add support for serial ports.
[SVN r46272]
2008-06-09 12:54:55 +00:00
Christopher Kohlhoff
b466d42996 Add test for the crash that can occur when destroying a handler object that
owns its own memory (as is the case when destroying handlers in an orphaned
strand). 


[SVN r46003]
2008-06-01 01:31:25 +00:00
Christopher Kohlhoff
528e09e9f6 Fully qualify uses of asio's placeholders to resolve ambiguity with C++0x's
placeholders namespace.


[SVN r45006]
2008-05-02 07:59:01 +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
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
02e47999fa Update copyright notices.
[SVN r43473]
2008-03-03 14:13:01 +00:00