UDP-WG Implementation
|
A WireGuard packet for sending Transport Messages. More...
#include <wireguard.h>
Public Member Functions | |
TransportPacket (const std::string &buffer) | |
crypto::string & | operator[] (const size_t &val) |
const crypto::string & | operator[] (const size_t &val) const |
Public Member Functions inherited from wireguard::Packet | |
std::string | Serialize () |
Serialize the packet. | |
void | Expand (const std::string &buffer, const bool &fill=false) |
Construct a Packet from a std::string. | |
Static Public Member Functions | |
static udp::packet | Create (config &config, const udp::packet &in) |
static udp::packet | Return (config &config, const udp::packet &packet) |
Receive an encrypted WireGuard communication. | |
Static Public Attributes | |
static constexpr size_t | reserved = 0 |
static constexpr size_t | receiver = 1 |
static constexpr size_t | counter = 2 |
static constexpr size_t | packet = 3 |
Additional Inherited Members | |
Protected Attributes inherited from wireguard::Packet | |
std::vector< crypto::string > | values |
A WireGuard packet for sending Transport Messages.
|
inlinestatic |
Receive an encrypted WireGuard communication.
buffer | The raw bytes of the UDP data containing our WireGuard payload. |
length | The size of the buffer |