congestvpn/UdpVpnServer.hpp

19 lines
478 B
C++

#pragma once
#include "UdpVpn.hpp"
class UdpVpnServer: public UdpVpn {
public:
UdpVpnServer(in_port_t port);
UdpVpnServer(const struct in6_addr& bind_addr6, in_port_t port);
~UdpVpnServer();
protected:
virtual void acquire_peer(
VpnDataPacket& packet,
const sockaddr_in6& peer_ext_addr);
void bind(const struct in6_addr& bind_addr6, in_port_t port);
struct sockaddr_in6 _bind_addr;
};