forked from openairlinetycoon/ATDMasterServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNATServer.h
More file actions
33 lines (23 loc) · 727 Bytes
/
NATServer.h
File metadata and controls
33 lines (23 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
namespace RakNet {
class RakPeerInterface;
class NatPunchthroughServer;
class UDPProxyCoordinator;
class UDPProxyServer;
}
class ExNatPunchthroughServer;
class NATServer {
private:
RakNet::RakPeerInterface* rakPeer = nullptr;
ExNatPunchthroughServer* nat = nullptr;
RakNet::UDPProxyCoordinator *udpCoordinator = nullptr;
RakNet::UDPProxyServer *udpServer = nullptr;
RakNet::RakPeerInterface* rakPeerUDP = nullptr;
bool hasUDPLoggedIn = false;
public:
NATServer(RakNet::RakPeerInterface* rakPeer);
~NATServer();
void StartServer();
[[nodiscard]] unsigned int GetConnectedUser() const;
void ProcessMessages();
};