boost::corosio::tcp_socket::tcp_socket
Constructors
Synopses
Declared in <boost/corosio/tcp_socket.hpp>
Copy constructor
tcp_socket(tcp_socket const& other) = delete;
Move constructor.
tcp_socket(tcp_socket&& other) noexcept;
Construct a socket from an execution context.
explicit
tcp_socket(capy::execution_context& ctx);
Construct a socket from an executor.
template<class Ex>
requires (!std::same_as<std::remove_cvref_t<Ex>, tcp_socket>) &&
capy::Executor<Ex>
explicit
tcp_socket(Ex const& ex);
Parameters
| Name | Description |
|---|---|
other |
The socket to move from. |
ctx |
The execution context that will own this socket. |
ex |
The executor whose context will own the socket. |
Created with MrDocs