Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
tcp.h File Reference

TCP protocol connection and listener factory functions. More...

#include "kcenon/network/detail/unified/i_connection.h"
#include "kcenon/network/detail/unified/i_listener.h"
#include "kcenon/network/detail/unified/types.h"
#include <memory>
#include <string>
#include <string_view>
Include dependency graph for tcp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  kcenon
 
namespace  kcenon::network
 Main namespace for all Network System components.
 
namespace  kcenon::network::protocol
 
namespace  kcenon::network::protocol::tcp
 

Functions

auto kcenon::network::protocol::tcp::create_connection (std::string_view id="") -> std::unique_ptr< unified::i_connection >
 Creates a TCP connection (not yet connected)
 
auto kcenon::network::protocol::tcp::connect (const unified::endpoint_info &endpoint, std::string_view id="") -> std::unique_ptr< unified::i_connection >
 Creates and connects a TCP connection in one call.
 
auto kcenon::network::protocol::tcp::connect (std::string_view url, std::string_view id="") -> std::unique_ptr< unified::i_connection >
 Creates and connects a TCP connection using URL format.
 
auto kcenon::network::protocol::tcp::create_listener (std::string_view id="") -> std::unique_ptr< unified::i_listener >
 Creates a TCP listener (not yet listening)
 
auto kcenon::network::protocol::tcp::listen (const unified::endpoint_info &bind_address, std::string_view id="") -> std::unique_ptr< unified::i_listener >
 Creates and starts a TCP listener in one call.
 
auto kcenon::network::protocol::tcp::listen (uint16_t port, std::string_view id="") -> std::unique_ptr< unified::i_listener >
 Creates and starts a TCP listener on a specific port.
 

Detailed Description

TCP protocol connection and listener factory functions.

TCP protocol factory functions for the unified transport layer.

See also
tcp_facade.h

Provides create_connection() and create_listener() factory functions for TCP transport using the unified i_connection/i_listener interfaces.

Definition in file tcp.h.