peerCrossPingCallback

GameSpy SDK

peerCrossPingCallback

Callback for updated cross-ping between two players in the staging room.

typedef void (*peerCrossPingCallback)(
PEER peer,
const gsi_char * nick1,
const gsi_char * nick2,
int crossPing,
void * param );
RoutineRequired HeaderDistribution
peerCrossPingCallback<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object
nick1
[in] The first player's nick
nick2
[in] The second player's nick
crossPing
[in] The cross ping between the two players
param
[in] Pointer to user data. This is optional and will be passed unmodified to the callback function.

Remarks

This is the most recent ping from the first player (nick1) to the second player (nick2), as reported by the first player. This ordering information is not retained (i.e., peer stores the pings between sets of players, not each player’s ping to each other player). To get the average ping between two players, use peerGetPlayersCrossPing().

Section Reference: Gamespy Peer SDK