![]() |
Nexus Engine
v0.0.1
|
Public Member Functions | |
| UDPSocket ()=default | |
| UDPSocket (const UDPSocket &)=delete | |
| UDPSocket & | operator= (const UDPSocket &)=delete |
| UDPSocket (UDPSocket &&) noexcept=default | |
| UDPSocket & | operator= (UDPSocket &&) noexcept=default |
| bool | Bind (uint16 port) |
| void | Close () |
| bool | IsOpen () const noexcept |
| bool | Send (const NetworkAddress &destination, std::span< const byte > data) |
| std::optional< UDPMessage > | Receive (std::optional< NetworkError > &outError) |
| Returns one datagram. Call repeatedly until it returns nullopt. | |
|
default |
|
delete |
|
defaultnoexcept |
| bool Nexus::Network::UDPSocket::Bind | ( | uint16 | port | ) |
| void Nexus::Network::UDPSocket::Close | ( | ) |
|
nodiscardnoexcept |
|
nodiscard |
Returns one datagram. Call repeatedly until it returns nullopt.
| bool Nexus::Network::UDPSocket::Send | ( | const NetworkAddress & | destination, |
| std::span< const byte > | data ) |