Topic Path: Symbol Reference > Classes > TIdIOHandler Class > TIdIOHandler Methods > WriteDirect Method
TIdIOHandler.WriteDirect Method

Moves values to the socket-level transport for the IOHandler.

procedure WriteDirect(
    var aBuffer: TIdBytes
); virtual;
Values to be moved to the socket-level transport for the IOHandler. 

WriteDirect is a virtual procedure used as the main mechanism for writing values to the IOHandler. 

WriteDirect is called in methods like Write and WriteBufferFlush to move data directly to the socket handle used for network-level access. 

WriteDirect calls CheckForDisconnect to determine if the IOHandler is actively connected to the endpoint for the transfer. WriteDirect also fires the Send method for an assigned Intercept.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.