Topic Path: Symbol Reference > Classes > TIdIOHandler Class > TIdIOHandler Methods > WriteBufferOpen Method > WriteBufferOpen Method (Integer)
ContentsIndexHome
PreviousUpNext
TIdIOHandler.WriteBufferOpen Method (Integer)

Enables write buffering for the IOHandler.

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.

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