Internet Direct (Indy) Version 9.0.2 Beta
TIdTCPConnection.ReadCardinal
Returns a cardinal read from the peer.

function ReadCardinal(const AConvert: boolean): Cardinal;
Parameters
const AConvert: boolean = true
Default is True. When true, the value is converted from Internet Byte order to the Native Intel Byte order. If false, no byte-order conversion is done.

Returns
Cardinal - the 32 bit value which was received from the peer.

Description
This function reads a 32 bit unsigned (cardinal) value from the peer and returns it.