gt2NetworkToHostInt

GameSpy SDK

gt2NetworkToHostInt

Convert an int from network to host byte order.

unsigned intĀ gt2NetworkToHostInt(
unsigned int i );
RoutineRequired HeaderDistribution
gt2NetworkToHostInt<gt2.h>SDKZIP

Return Value

The int in host byte order.

Parameters

i
[in] Int to convert.

Remarks

This is a utility function to help deal with byte order differences for multi-platform applications. Convert from host to network byte order before sending over the network, then convert back to host byte order when receiving.