Chops Net IP
Loading...
Searching...
No Matches
net_entity_common.hpp File Reference

Common code, factored out, for TCP acceptor, TCP connector, and UDP net entity handlers. More...

#include "asio/any_io_executor.hpp"
#include "asio/post.hpp"
#include <atomic>
#include <system_error>
#include <functional>
#include <utility>
#include <memory>
#include <cstddef>
#include <future>
#include "net_ip/basic_io_interface.hpp"
#include "net_ip/net_ip_error.hpp"
Include dependency graph for net_entity_common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  chops::net::detail::net_entity_common< IOT >
 

Detailed Description

Common code, factored out, for TCP acceptor, TCP connector, and UDP net entity handlers.

The state machine for a net entity object is unstarted, started, stopped, currently implemented within this class by a std::atomic_int.

Once an entity is stopped it is not allowed to be started again. This may change in the future, but internal designs would have to change to allow each net entity to completely transition through all of its shutdown operations before it can be started again.

Note
For internal use only.
Author
Cliff Green

Copyright (c) 2017-2025 by Cliff Green

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)