UDP-WG Implementation
|
The core networking namespace. More...
Classes | |
class | queue |
A thread-safe queue. More... | |
Functions | |
void | thread (port_t port, wireguard::config wg={}) |
The Network Thread. | |
Variables | |
queue | in |
queue | out |
The core networking namespace.
void network::thread | ( | port_t | port, |
wireguard::config | wg = {} ) |
The Network Thread.
port | The port to bind to: 0 = randomized. |
wg | An optional WireGuard configuration. |
Send a packet across a FD.
p | The packet to send. |
fd | The FD to send across. |
runtime_error | If the packet failed to send. |
Open a socket at the specified port.
port | The port. |
Establish a new connection.
dest | The destination. |
Cleanup the thread.
Wait for a connection of a specific type.
fd | The FD to listen on. |
tag | The tag at the start of the packet data. |