Skip to content

Commit

Permalink
Merge branch 'chriskohlhoff:master' into zig-pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane authored Oct 30, 2024
2 parents 272a8ae + bb85475 commit 4d9b548
Show file tree
Hide file tree
Showing 139 changed files with 2,108 additions and 4,448 deletions.
4 changes: 2 additions & 2 deletions asio/README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
asio version 1.31.0
Released Monday, 05 August 2024.
asio version 1.32.0
Released Thursday, 15 August 2024.

See doc/index.html for API documentation and a tutorial.
2 changes: 1 addition & 1 deletion asio/configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([asio],[1.31.0])
AC_INIT([asio],[1.32.0])
AC_CONFIG_SRCDIR(include/asio.hpp)
AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE([tar-pax])
Expand Down
12 changes: 4 additions & 8 deletions asio/include/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ nobase_include_HEADERS = \
asio/completion_condition.hpp \
asio/compose.hpp \
asio/composed.hpp \
asio/config.hpp \
asio/connect.hpp \
asio/connect_pipe.hpp \
asio/consign.hpp \
Expand Down Expand Up @@ -347,6 +348,7 @@ nobase_include_HEADERS = \
asio/detail/work_dispatcher.hpp \
asio/detail/wrapped_handler.hpp \
asio/dispatch.hpp \
asio/disposition.hpp \
asio/error_code.hpp \
asio/error.hpp \
asio/execution.hpp \
Expand All @@ -368,9 +370,7 @@ nobase_include_HEADERS = \
asio/execution/relationship.hpp \
asio/executor.hpp \
asio/executor_work_guard.hpp \
asio/experimental/append.hpp \
asio/experimental/as_single.hpp \
asio/experimental/as_tuple.hpp \
asio/experimental/awaitable_operators.hpp \
asio/experimental/basic_channel.hpp \
asio/experimental/basic_concurrent_channel.hpp \
Expand All @@ -383,7 +383,6 @@ nobase_include_HEADERS = \
asio/experimental/concurrent_channel.hpp \
asio/experimental/coro.hpp \
asio/experimental/coro_traits.hpp \
asio/experimental/deferred.hpp \
asio/experimental/detail/channel_operation.hpp \
asio/experimental/detail/channel_receive_op.hpp \
asio/experimental/detail/channel_send_functions.hpp \
Expand All @@ -402,7 +401,6 @@ nobase_include_HEADERS = \
asio/experimental/impl/use_coro.hpp \
asio/experimental/impl/use_promise.hpp \
asio/experimental/parallel_group.hpp \
asio/experimental/prepend.hpp \
asio/experimental/promise.hpp \
asio/experimental/use_coro.hpp \
asio/experimental/use_promise.hpp \
Expand All @@ -429,6 +427,8 @@ nobase_include_HEADERS = \
asio/impl/cancel_at.hpp \
asio/impl/cancellation_signal.ipp \
asio/impl/co_spawn.hpp \
asio/impl/config.hpp \
asio/impl/config.ipp \
asio/impl/connect.hpp \
asio/impl/connect_pipe.hpp \
asio/impl/connect_pipe.ipp \
Expand Down Expand Up @@ -464,8 +464,6 @@ nobase_include_HEADERS = \
asio/impl/write.hpp \
asio/io_context.hpp \
asio/io_context_strand.hpp \
asio/io_service.hpp \
asio/io_service_strand.hpp \
asio/ip/address.hpp \
asio/ip/address_v4.hpp \
asio/ip/address_v4_iterator.hpp \
Expand Down Expand Up @@ -569,9 +567,7 @@ nobase_include_HEADERS = \
asio/ssl/impl/context.ipp \
asio/ssl/impl/error.ipp \
asio/ssl/impl/host_name_verification.ipp \
asio/ssl/impl/rfc2818_verification.ipp \
asio/ssl/impl/src.hpp \
asio/ssl/rfc2818_verification.hpp \
asio/ssl/stream_base.hpp \
asio/ssl/stream.hpp \
asio/ssl/verify_context.hpp \
Expand Down
4 changes: 2 additions & 2 deletions asio/include/asio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
#include "asio/completion_condition.hpp"
#include "asio/compose.hpp"
#include "asio/composed.hpp"
#include "asio/config.hpp"
#include "asio/connect.hpp"
#include "asio/connect_pipe.hpp"
#include "asio/consign.hpp"
Expand All @@ -79,6 +80,7 @@
#include "asio/default_completion_token.hpp"
#include "asio/detached.hpp"
#include "asio/dispatch.hpp"
#include "asio/disposition.hpp"
#include "asio/error.hpp"
#include "asio/error_code.hpp"
#include "asio/execution.hpp"
Expand Down Expand Up @@ -108,8 +110,6 @@
#include "asio/immediate.hpp"
#include "asio/io_context.hpp"
#include "asio/io_context_strand.hpp"
#include "asio/io_service.hpp"
#include "asio/io_service_strand.hpp"
#include "asio/ip/address.hpp"
#include "asio/ip/address_v4.hpp"
#include "asio/ip/address_v4_iterator.hpp"
Expand Down
7 changes: 6 additions & 1 deletion asio/include/asio/basic_deadline_timer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#include "asio/detail/config.hpp"

#if !defined(ASIO_NO_DEPRECATED)

#if defined(ASIO_HAS_BOOST_DATE_TIME) \
|| defined(GENERATING_DOCUMENTATION)

Expand All @@ -35,7 +37,8 @@

namespace asio {

/// Provides waitable timer functionality.
/// (Deprecated: Use basic_waitable_timer.) Provides waitable timer
/// functionality.
/**
* The basic_deadline_timer class template provides the ability to perform a
* blocking or asynchronous wait for a timer to expire.
Expand Down Expand Up @@ -707,4 +710,6 @@ class basic_deadline_timer
#endif // defined(ASIO_HAS_BOOST_DATE_TIME)
// || defined(GENERATING_DOCUMENTATION)

#endif // !defined(ASIO_NO_DEPRECATED)

#endif // ASIO_BASIC_DEADLINE_TIMER_HPP
19 changes: 10 additions & 9 deletions asio/include/asio/basic_io_object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)

#include "asio/detail/config.hpp"

#if !defined(ASIO_NO_DEPRECATED) \
|| defined(GENERATING_DOCUMENTATION)

#include "asio/io_context.hpp"

#include "asio/detail/push_options.hpp"
Expand Down Expand Up @@ -45,7 +49,7 @@ namespace detail
};
}

/// Base class for all I/O objects.
/// (Deprecated) Base class for all I/O objects.
/**
* @note All I/O objects are non-copyable. However, when using C++0x, certain
* I/O objects do support move construction and move assignment.
Expand All @@ -65,9 +69,7 @@ class basic_io_object
/// The underlying implementation type of I/O object.
typedef typename service_type::implementation_type implementation_type;

#if !defined(ASIO_NO_DEPRECATED)
/// (Deprecated: Use get_executor().) Get the io_context associated with the
/// object.
/// Get the io_context associated with the object.
/**
* This function may be used to obtain the io_context object that the I/O
* object uses to dispatch handlers for asynchronous operations.
Expand All @@ -80,8 +82,7 @@ class basic_io_object
return service_.get_io_context();
}

/// (Deprecated: Use get_executor().) Get the io_context associated with the
/// object.
/// Get the io_context associated with the object.
/**
* This function may be used to obtain the io_context object that the I/O
* object uses to dispatch handlers for asynchronous operations.
Expand All @@ -93,7 +94,6 @@ class basic_io_object
{
return service_.get_io_context();
}
#endif // !defined(ASIO_NO_DEPRECATED)

/// The type of the executor associated with the object.
typedef asio::io_context::executor_type executor_type;
Expand Down Expand Up @@ -196,7 +196,6 @@ class basic_io_object<IoObjectService, true>
typedef IoObjectService service_type;
typedef typename service_type::implementation_type implementation_type;

#if !defined(ASIO_NO_DEPRECATED)
asio::io_context& get_io_context()
{
return service_->get_io_context();
Expand All @@ -206,7 +205,6 @@ class basic_io_object<IoObjectService, true>
{
return service_->get_io_context();
}
#endif // !defined(ASIO_NO_DEPRECATED)

typedef asio::io_context::executor_type executor_type;

Expand Down Expand Up @@ -283,4 +281,7 @@ class basic_io_object<IoObjectService, true>

#include "asio/detail/pop_options.hpp"

#endif // !defined(ASIO_NO_DEPRECATED)
// || defined(GENERATING_DOCUMENTATION)

#endif // ASIO_BASIC_IO_OBJECT_HPP
65 changes: 0 additions & 65 deletions asio/include/asio/basic_socket_iostream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,8 @@ class socket_iostream_base

// Forward declaration with defaulted arguments.
template <typename Protocol,
#if defined(ASIO_HAS_BOOST_DATE_TIME) \
&& defined(ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM)
typename Clock = boost::posix_time::ptime,
typename WaitTraits = time_traits<Clock>>
#else // defined(ASIO_HAS_BOOST_DATE_TIME)
// && defined(ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM)
typename Clock = chrono::steady_clock,
typename WaitTraits = wait_traits<Clock>>
#endif // defined(ASIO_HAS_BOOST_DATE_TIME)
// && defined(ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM)
class basic_socket_iostream;

#endif // !defined(ASIO_BASIC_SOCKET_IOSTREAM_FWD_DECL)
Expand All @@ -91,16 +83,7 @@ class basic_socket_iostream
public std::basic_iostream<char>
{
private:
// These typedefs are intended keep this class's implementation independent
// of whether it's using Boost.DateClock, Boost.Chrono or std::chrono.
#if defined(ASIO_HAS_BOOST_DATE_TIME) \
&& defined(ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM)
typedef WaitTraits traits_helper;
#else // defined(ASIO_HAS_BOOST_DATE_TIME)
// && defined(ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM)
typedef detail::chrono_time_traits<Clock, WaitTraits> traits_helper;
#endif // defined(ASIO_HAS_BOOST_DATE_TIME)
// && defined(ASIO_USE_BOOST_DATE_TIME_FOR_SOCKET_IOSTREAM)

public:
/// The protocol type.
Expand All @@ -113,22 +96,12 @@ class basic_socket_iostream
typedef Clock clock_type;

#if defined(GENERATING_DOCUMENTATION)
/// (Deprecated: Use time_point.) The time type.
typedef typename WaitTraits::time_type time_type;

/// The time type.
typedef typename WaitTraits::time_point time_point;

/// (Deprecated: Use duration.) The duration type.
typedef typename WaitTraits::duration_type duration_type;

/// The duration type.
typedef typename WaitTraits::duration duration;
#else
# if !defined(ASIO_NO_DEPRECATED)
typedef typename traits_helper::time_type time_type;
typedef typename traits_helper::duration_type duration_type;
# endif // !defined(ASIO_NO_DEPRECATED)
typedef typename traits_helper::time_type time_point;
typedef typename traits_helper::duration_type duration;
#endif
Expand Down Expand Up @@ -240,18 +213,6 @@ class basic_socket_iostream
return rdbuf()->error();
}

#if !defined(ASIO_NO_DEPRECATED)
/// (Deprecated: Use expiry().) Get the stream's expiry time as an absolute
/// time.
/**
* @return An absolute time value representing the stream's expiry time.
*/
time_point expires_at() const
{
return rdbuf()->expires_at();
}
#endif // !defined(ASIO_NO_DEPRECATED)

/// Get the stream's expiry time as an absolute time.
/**
* @return An absolute time value representing the stream's expiry time.
Expand Down Expand Up @@ -289,32 +250,6 @@ class basic_socket_iostream
rdbuf()->expires_after(expiry_time);
}

#if !defined(ASIO_NO_DEPRECATED)
/// (Deprecated: Use expiry().) Get the stream's expiry time relative to now.
/**
* @return A relative time value representing the stream's expiry time.
*/
duration expires_from_now() const
{
return rdbuf()->expires_from_now();
}

/// (Deprecated: Use expires_after().) Set the stream's expiry time relative
/// to now.
/**
* This function sets the expiry time associated with the stream. Stream
* operations performed after this time (where the operations cannot be
* completed using the internal buffers) will fail with the error
* asio::error::operation_aborted.
*
* @param expiry_time The expiry time to be used for the timer.
*/
void expires_from_now(const duration& expiry_time)
{
rdbuf()->expires_from_now(expiry_time);
}
#endif // !defined(ASIO_NO_DEPRECATED)

private:
// Disallow copying and assignment.
basic_socket_iostream(const basic_socket_iostream&) = delete;
Expand Down
Loading

0 comments on commit 4d9b548

Please sign in to comment.