congestvpn/UdpVpnServer.hpp

20 lines
478 B
C++
Raw Normal View History

#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);
2020-07-22 17:04:22 +02:00
~UdpVpnServer();
protected:
virtual void acquire_peer(
2020-06-26 19:41:55 +02:00
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;
};