adapnex::core::UDPConnection::Create
Creates a UDPConnection instance that only sends/receives datagrams to/from the given IPv4 address and port.
Synopsis
Declared in <adapnex/core/network.h>
static
std::unique_ptr<UDPConnection>
Create(
std::array<uint8_t, 4> ip_v4,
uint16_t port);
Return Value
Returns a valid UDPConnection instance if the connection was successful, nullptr otherwise.
Parameters
| Name | Description |
|---|---|
ip_v4 |
The raw IPv4 address to send to and receive from. |
port |
The port number to send to and receive from. |
Created with MrDocs