|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
Functions | |
| auto | create_connection (std::string_view id="") -> std::unique_ptr< unified::i_connection > |
| Creates a TCP connection (not yet connected) | |
| 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 | 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 | create_listener (std::string_view id="") -> std::unique_ptr< unified::i_listener > |
| Creates a TCP listener (not yet listening) | |
| 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 | listen (uint16_t port, std::string_view id="") -> std::unique_ptr< unified::i_listener > |
| Creates and starts a TCP listener on a specific port. | |
|
nodiscard |
Creates and connects a TCP connection in one call.
| endpoint | The remote endpoint to connect to |
| id | Optional unique identifier for the connection |
This is a convenience function that creates a connection and immediately initiates the connection to the specified endpoint.
Definition at line 39 of file tcp.cpp.
References create_connection().

|
nodiscard |
Creates and connects a TCP connection using URL format.
| url | The URL to connect to (format: "tcp://host:port" or "host:port") |
| id | Optional unique identifier for the connection |
Definition at line 48 of file tcp.cpp.
References create_connection().

|
nodiscard |
Creates a TCP connection (not yet connected)
| id | Optional unique identifier for the connection |
The returned connection is not connected. Call connect() to establish the connection to a remote endpoint.
Definition at line 33 of file tcp.cpp.
Referenced by connect(), and connect().

|
nodiscard |
Creates a TCP listener (not yet listening)
| id | Optional unique identifier for the listener |
The returned listener is not listening. Call start() to begin accepting connections.
Definition at line 56 of file tcp.cpp.
Referenced by listen().

|
nodiscard |
Creates and starts a TCP listener in one call.
| bind_address | The local address to bind to |
| id | Optional unique identifier for the listener |
This is a convenience function that creates a listener and immediately starts listening on the specified address.
Definition at line 62 of file tcp.cpp.
References create_listener().
Referenced by listen().


|
nodiscard |
Creates and starts a TCP listener on a specific port.
| port | The port number to listen on |
| id | Optional unique identifier for the listener |
Convenience overload that binds to all interfaces (0.0.0.0).
Definition at line 70 of file tcp.cpp.
References listen().
