Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
kcenon::network::concepts::NetworkSession Concept Reference

A type that represents a network session. More...

#include <network_concepts.h>

Concept definition

template<typename T>
{ t.get_session_id() } -> std::convertible_to<std::string>;
{ t.start_session() };
{ t.stop_session() };
}
A type that represents a network session.

Detailed Description

A type that represents a network session.

Example usage:

template<NetworkSession Session>
void handle_session(std::shared_ptr<Session> session) {
auto id = session->get_session_id();
session->start_session();
}

Definition at line 276 of file network_concepts.h.