Internet Direct (Indy)
Home
PreviousUpNext
TIdIOHandler.Write Method (Integer, Boolean)

Write the specified values to the IOHandler.

Pascal
procedure Write(
    AValue: Integer; 
    AConvert: Boolean = True
); overload;
Parameters 
Description 
AValue 
Value to write to the IOHandler.
 
AConvert 
Indicates the order of bytes for the ordinal data type must be converted. 

Write is an overloaded method in TIdIOHandler used to write various data types from the indicated source to the IOHandler. Write can use the Indy write buffering mechanism when it has been enabled. 

When AConvert is True, the byte order for AValue is converted from its host-specific byte order to Network byte order using the HostToNetwork method in GStack

Write calls WriteBytes to copy the converted value to the IOHandler. 

Call WriteBufferOpen to enable write buffer for the IOHandler. 

Call WriteBufferClose to disable write buffer for the IOHandler.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.