22 #if _RAKNET_SUPPORT_Router2==1 && _RAKNET_SUPPORT_UDPForwarder==1
24 #ifndef __ROUTER_2_PLUGIN_H
25 #define __ROUTER_2_PLUGIN_H
39 class RakPeerInterface;
70 void SetSocketFamily(
unsigned short _socketFamily);
90 void EstablishRouting(
RakNetGUID endpointGuid);
94 void SetMaximumForwardingRequests(
int max);
106 virtual void Update(
void);
109 virtual void OnRakPeerShutdown(
void);
140 unsigned int GetConnectionRequestIndex(
RakNetGUID endpointGuid);
168 void RemoveConnectionRequest(
unsigned int connectionRequestIndex);
170 void OnQueryForwarding(
Packet *packet);
171 void OnQueryForwardingReply(
Packet *packet);
172 void OnRequestForwarding(
Packet *packet);
173 void OnRerouted(
Packet *packet);
174 void OnMiniPunchReply(
Packet *packet);
175 void OnMiniPunchReplyBounce(
Packet *packet);
176 bool OnForwardingSuccess(
Packet *packet);
177 int GetLargestPingAmongConnectedSystems(
void)
const;
179 bool ConnectInternal(
RakNetGUID endpointGuid,
bool returnConnectionLostOnFailure);
189 void ClearConnectionRequests(
void);
190 void ClearMinipunches(
void);
191 void ClearForwardedConnections(
void);
208 #endif // _RAKNET_SUPPORT_*