gt2HostToNetworkInt
Convert an int from host to network byte order.
- unsigned intĀ gt2HostToNetworkInt(
- unsigned int i );
Routine | Required Header | Distribution |
---|---|---|
gt2HostToNetworkInt | <gt2.h> | SDKZIP |
Return Value
The int in network 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.
Section Reference: Gamespy Transport SDK
See Also: gt2NetworkToHostInt, gt2NetworkToHostShort, gt2HostToNetworkShort