gt2HostToNetworkShort

GameSpy SDK

gt2HostToNetworkShort

Convert a short from host to network byte order.

unsigned short gt2HostToNetworkShort(
unsigned short s );
RoutineRequired HeaderDistribution
gt2HostToNetworkShort<gt2.h>SDKZIP

Return Value

The short in network byte order.

Parameters

s
[in] Short 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.