connectivecpp / chops-net-ip

Chops Net IP ("C"onnective "H"andcrafted "Op"enwork "S"oftware), a tasty C++ library that makes asynchronous IP network coding fun!
Boost Software License 1.0
7 stars 3 forks source link

Change net_entity from class template to non-class template #20

Closed cliffg-softwarelibre closed 5 years ago

cliffg-softwarelibre commented 5 years ago

By using an internal std::variant, the basic_net_entity class template can become a non-template. This simplifies application logic, allowing generic handling of TCP connectors, TCP acceptors, and UDP entities.

cliffg-softwarelibre commented 5 years ago

This has been implemented in the merge of June 3rd week. The net_entity class now internally uses a std::variant to support either a TCP acceptor, TCP connector, or UDP entity. This complicates the internal implementation