peerSendNatNegotiateCookie

GameSpy SDK

peerSendNatNegotiateCookie

Send a nat negotiation cookie to a server.

void peerSendNatNegotiateCookie(
PEER peer,
unsigned int ip,
unsigned short port,
int cookie );
RoutineRequired HeaderDistribution
peerSendNatNegotiateCookie<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object.
ip
[in] IP address of the remote server.
port
[in] Port of the remote server.
cookie
[in] Cookie to send. Usually an integer value randomly generated by the sender.

Remarks

The peerSendNatNegotiationCookie will send a nat-negotiate cookie to the master server. See the nat-negotiate documentation for more information.

Section Reference: Gamespy Peer SDK