Topic Path: Symbol Reference > Classes > TIdIOHandler Class > TIdIOHandler Methods > WriteBufferFlush Method > WriteBufferFlush Method ()
TIdIOHandler.WriteBufferFlush Method ()

Writes data in the write buffering mechaism to the IOHandler connection.

procedure WriteBufferFlush; overload;

WriteBufferFlush is an overloaded procedure used to force any existing data in the write buffering mechanism to be written to the connection for the IOHandler. 

WriteBufferFlush calls an overloaded variant of the method using -1 for the number of bytes to write from the buffer to the IOHandler. The default value is -1, and indicates that all data should be written. The number of bytes written is also removed from WriteBuffer prior to completion of the write request. 

WriteBufferFlush call WriteBytes using existing data in WriteBuffer. 

Use WriteBufferOpen to enable write buffering for the IOHandler. 

Use WriteBufferClose to disable write buffering for the IOHandler.






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