the whole game
This commit is contained in:
24
src/network/NATPunchHandler.h
Executable file
24
src/network/NATPunchHandler.h
Executable file
@@ -0,0 +1,24 @@
|
||||
#ifndef _MINECRAFT_NETWORK_NATPUNCHHANDLER_H_
|
||||
#define _MINECRAFT_NETWORK_NATPUNCHHANDLER_H_
|
||||
#include "../raknet/TCPInterface.h"
|
||||
#include "../raknet/RakString.h"
|
||||
class NATPuchHandler {
|
||||
public:
|
||||
enum NATPuchHandlerStatus {
|
||||
NATPuchInitilized = 0,
|
||||
NATPuchFetchingServerList = 1,
|
||||
NATPuchConnecting = 2,
|
||||
NATPuchConnected = 3,
|
||||
NATPuchDissconnected = 4
|
||||
};
|
||||
NATPuchHandler();
|
||||
~NATPuchHandler();
|
||||
void initialize();
|
||||
void registerToGameList(const RakNet::RakString& serverName, int port);
|
||||
void removeFromGameList();
|
||||
void close();
|
||||
private:
|
||||
RakNet::TCPInterface *tcpInterface;
|
||||
};
|
||||
|
||||
#endif /* _MINECRAFT_NETWORK_NATPUNCHHANDLER_H_ */
|
||||
Reference in New Issue
Block a user