Unit 'IdIOHandler' Package
[Overview][Constants][Types][Classes][Index] [#pl_indy]

TIdIOHandler

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Declaration

Source position: IdIOHandler.pas line 437

type TIdIOHandler = class(TIdComponent)

protected

  FClosedGracefully: Boolean;

  

  FConnectTimeout: Integer;

  

  FDestination: string;

  

  FHost: string;

  

  FInputBuffer: TIdBuffer;

  

  FIntercept: TIdConnectionIntercept;

  

  FMaxCapturedLines: Integer;

  

  FMaxLineAction: TIdMaxLineAction;

  

  FMaxLineLength: Integer;

  

  FOpened: Boolean;

  

  FPort: Integer;

  

  FReadLnSplit: Boolean;

  

  FReadLnTimedOut: Boolean;

  

  FReadTimeOut: Integer;

  

  FRecvBufferSize: Integer;

  

  FSendBufferSize: Integer;

  

  FWriteBuffer: TIdBuffer;

  

  FWriteBufferThreshold: Integer;

  

  FDefStringEncoding: IIdTextEncoding;

  

  FDefAnsiEncoding: IIdTextEncoding;

  

  procedure SetDefStringEncoding();

  

  procedure SetDefAnsiEncoding();

  

  procedure BufferRemoveNotify();

  

  function GetDestination; virtual;

  

  procedure InitComponent; override;

  

  procedure InterceptReceive();

  

  procedure Notification(); override;

  

  procedure PerformCapture(); virtual;

  

  procedure RaiseConnClosedGracefully;

  

  procedure SetDestination(); virtual;

  

  procedure SetHost(); virtual;

  

  procedure SetPort(); virtual;

  

  procedure SetIntercept(); virtual;

  

  function ReadFromSource();

  

  function ReadDataFromSource(); virtual; abstract;

  

  function WriteDataToTarget(); virtual; abstract;

  

  function SourceIsAvailable; virtual; abstract;

  

  function CheckForError(); virtual; abstract;

  

  procedure RaiseError(); virtual; abstract;

  

public

  procedure AfterAccept; virtual;

  

  function Connected; virtual;

  

  destructor Destroy; override;

  

  procedure CheckForDisconnect(); virtual; abstract;

  

  function CheckForDataOnSource(); virtual;

  

  procedure Close; virtual;

  

  procedure CloseGracefully; virtual;

  

  class function MakeDefaultIOHandler();

  

  class function MakeIOHandler();

  

  class function TryMakeIOHandler();

  

  class procedure RegisterIOHandler;

  

  class procedure SetDefaultClass;

  

  function WaitFor();

  

  procedure Write();

  

  procedure WriteDirect();

  

  procedure Open; virtual;

  

  function Readable(); virtual;

  

  procedure WriteLn();

  

  procedure WriteLnRFC(); virtual;

  

  procedure WriteRFCStrings();

  

  function WriteFile(); virtual;

  

  function AllData(); virtual;

  

  function InputLn(); virtual;

  

  procedure Capture();

  

  procedure ReadBytes(); virtual;

  

  function ReadLn();

  

  function ReadLnRFC();

  

  function ReadLnWait(); virtual;

  

  function ReadLnSplit();

  

  function ReadChar();

  

  function ReadByte;

  

  function ReadString();

  

  function ReadInt16();

  

  function ReadUInt16();

  

  function ReadInt32();

  

  function ReadUInt32();

  

  function ReadInt64();

  

  function ReadUInt64();

  

  function ReadSmallInt();

  

  function ReadWord();

  

  function ReadLongInt();

  

  function ReadLongWord();

  

  procedure ReadStream(); virtual;

  

  procedure ReadStrings();

  

  procedure Discard();

  

  procedure DiscardAll;

  

  procedure WriteBufferCancel; virtual;

  

  procedure WriteBufferClear; virtual;

  

  procedure WriteBufferClose; virtual;

  

  procedure WriteBufferFlush();

  

  procedure WriteBufferOpen();

  

  function WriteBufferingActive;

  

  function InputBufferIsEmpty;

  

  procedure InputBufferToStream();

  

  function InputBufferAsString();

  

  property ConnectTimeout: Integer; [rw]

  

  property ClosedGracefully: Boolean; [r]

  

  property InputBuffer: TIdBuffer; [r]

  

  property LargeStream: Boolean; [rw]

  

  property MaxCapturedLines: Integer; [rw]

  

  property Opened: Boolean; [r]

  

  property ReadTimeout: Integer; [rw]

  

  property ReadLnTimedout: Boolean; [r]

  

  property WriteBufferThreshold: Integer; [r]

  

  property DefStringEncoding: IIdTextEncoding; [rw]

  

  property DefAnsiEncoding: IIdTextEncoding; [rw]

  

  property OnWork: TWorkEvent;

  

  property OnWorkBegin: TWorkBeginEvent;

  

  property OnWorkEnd: TWorkEndEvent;

  

published

  property Destination: string; [rw]

  

  property Host: string; [rw]

  

  property Intercept: TIdConnectionIntercept; [rw]

  

  property MaxLineLength: Integer; [rw]

  

  property MaxLineAction: TIdMaxLineAction; [rw]

  

  property Port: Integer; [rw]

  

  property RecvBufferSize: Integer; [rw]

  

  property SendBufferSize: Integer; [rw]

  

end;

Inheritance

TIdIOHandler

  

|

TIdComponent

  

|

TIdBaseComponent

  

|

TIdInitializerComponent

  

|

TObject



CT Web help

CodeTyphon Studio