|
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 UDP connection (not yet started) | |
| auto | connect (const unified::endpoint_info &endpoint, std::string_view id="") -> std::unique_ptr< unified::i_connection > |
| Creates and starts a UDP connection in one call. | |
| auto | connect (std::string_view url, std::string_view id="") -> std::unique_ptr< unified::i_connection > |
| Creates and starts a UDP connection using URL format. | |
| auto | create_listener (std::string_view id="") -> std::unique_ptr< unified::i_listener > |
| Creates a UDP 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 UDP listener in one call. | |
| auto | listen (uint16_t port, std::string_view id="") -> std::unique_ptr< unified::i_listener > |
| Creates and starts a UDP listener on a specific port. | |
|
nodiscard |
Creates and starts a UDP connection in one call.
| endpoint | The target endpoint to send datagrams to |
| id | Optional unique identifier for the connection |
This is a convenience function that creates a UDP connection and immediately starts it with the specified target endpoint.
Definition at line 39 of file udp.cpp.
References create_connection().

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

|
nodiscard |
Creates a UDP connection (not yet started)
| id | Optional unique identifier for the connection |
The returned connection is not started. Call connect() to set the target endpoint and start the UDP client.
Unlike TCP, UDP is connectionless. The "connection" object manages a UDP socket that sends datagrams to a configured target endpoint.
Definition at line 33 of file udp.cpp.
Referenced by connect(), and connect().

|
nodiscard |
Creates a UDP listener (not yet listening)
| id | Optional unique identifier for the listener |
The returned listener is not listening. Call start() to begin receiving datagrams.
Unlike TCP, UDP servers don't accept connections. Instead, they receive datagrams from any sender. The listener tracks unique sender endpoints as virtual "connections" for convenience.
Definition at line 56 of file udp.cpp.
Referenced by listen().

|
nodiscard |
Creates and starts a UDP 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 udp.cpp.
References create_listener().
Referenced by listen().


|
nodiscard |
Creates and starts a UDP 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 udp.cpp.
References listen().
