Internet Direct (Indy) Version 9.0.2 Beta
TIdTCPConnection.WriteInteger
Writes a binary integer value to the peer connection.

procedure WriteInteger(AValue: Integer; const AConvert: boolean);
Parameters
AValue: Integer
The integer value to send to the peer.

const AConvert: boolean = True
Convert the Host byte-order to Network byte-order. Default value is True.

Description
WriteInteger is a procedure used to send an Integer value to the peer connection.

AValue is the integer value to send to the peer connection.

AConvert indicates that the integer in AValue should be converted from local host byte-order to Internet byte-order. When AConvertis True, the protcol stack method WSHToNl is called to convert the binary integer value.

WriteInteger calls WriteBuffer to send AValue to the peer connection.