2020-06-05 16:14:49 +02:00
|
|
|
#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();
|
2020-06-05 16:14:49 +02:00
|
|
|
protected:
|
2020-06-15 20:21:07 +02:00
|
|
|
virtual void acquire_peer(
|
2020-06-26 19:41:55 +02:00
|
|
|
VpnDataPacket& packet,
|
2020-06-15 20:21:07 +02:00
|
|
|
const sockaddr_in6& peer_ext_addr);
|
2020-06-05 16:14:49 +02:00
|
|
|
|
2020-06-15 20:21:07 +02:00
|
|
|
void bind(const struct in6_addr& bind_addr6, in_port_t port);
|
2020-06-05 16:14:49 +02:00
|
|
|
|
|
|
|
struct sockaddr_in6 _bind_addr;
|
|
|
|
};
|