Internet Direct (Indy)
Home
PreviousUpNext
TIdIOHandler.WriteBufferOpen Method (Integer)

Enables write buffering for the IOHandler.

Pascal
procedure WriteBufferOpen(
    AThreshhold: Integer
); virtual; overload;
Parameters 
Description 
AThreshhold 
Number of bytes to accumulate in the write buffer prior to flushing to the IOHandler connection. The default value is -1. 

WriteBufferOpen is a virtual procedure used to enable write buffering for the IOHandler. 

WriteBufferOpen allocates the TIdBuffer instance used in the WriteBuffer property that stores values to be written to the IOHandler connection. 

AThreshhold indicates the number of bytes to accumulate in the write buffer prior to flushing to the IOHandler connection. The default value is -1, and indicates that all existing data in WriteBuffer should be flushed at the next opportunity. 

Use WriteBufferClose to disable write buffering for the IOHandler. 

Used WriteBufferFlush to force existing data in WriteBuffer to be written to the IOHandler connection.

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.