51 -> std::unique_ptr<unified::i_connection>;
72 std::string_view
id =
"")
73 -> std::unique_ptr<unified::i_connection>;
81[[nodiscard]]
auto connect(std::string_view url, std::string_view
id =
"")
82 -> std::unique_ptr<unified::i_connection>;
104 -> std::unique_ptr<unified::i_listener>;
125 std::string_view
id =
"")
126 -> std::unique_ptr<unified::i_listener>;
136[[nodiscard]]
auto listen(uint16_t port, std::string_view
id =
"")
137 -> std::unique_ptr<unified::i_listener>;
Core interface for active network connections.
Core interface for passive network listeners (server-side).
auto 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 create_listener(std::string_view id="") -> std::unique_ptr< unified::i_listener >
Creates a TCP listener (not yet listening)
auto 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 create_connection(std::string_view id="") -> std::unique_ptr< unified::i_connection >
Creates a TCP connection (not yet connected)
Network endpoint information (host/port or URL)
Network endpoint types (host/port, URL) and common type aliases.