Internet Direct (Indy) Version 9.0.1 Beta
TIdTCPConnection.WriteSmallInt
Sends a small integer value to the peer connection.

procedure WriteSmallInt(AValue: SmallInt; const AConvert: boolean);
Parameters
AValue: SmallInt
Value to be sent to the peer.

const AConvert: boolean = True
Convert the value from local host byte-order to Internet byte-order. Default value is True.

Description
WriteSmallInt is a procedure used to send the SmallInt specified in AValue to the peer connection.

When AConvert is True, the value specified in AValue is converted to Internet byte-order using the prtocol stack method WSHToNs.

WriteSmallInt calls WriteBuffer to send the SmallInt value to the peer connection.