Unit 'lNet' Package
[Overview][Constants][Types][Classes][Index] [#pl_lnet]

TLConnection

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

Declaration

Source position: lnet.pp line 225

type TLConnection = class(TLComponent,ILDirect,ILServer,ILClient)

protected

  FTimeVal: TTimeVal;

  

  FOnReceive: TLSocketEvent;

  

  FOnAccept: TLSocketEvent;

  

  FOnConnect: TLSocketEvent;

  

  FOnDisconnect: TLSocketEvent;

  

  FOnCanSend: TLSocketEvent;

  

  FOnError: TLSocketErrorEvent;

  

  FRootSock: TLSocket;

  

  FIterator: TLSocket;

  

  FID: Integer;

  

  FEventer: TLEventer;

  

  FEventerClass: TLEventerClass;

  

  FTimeout: Integer;

  

  FListenBacklog: Integer;

  

  FSession: TLSession;

  

  function InitSocket(); virtual;

  

  function GetConnected; virtual; abstract;

  

  function GetCount; virtual;

  

  function GetItem();

  

  function GetTimeout;

  

  procedure SetTimeout();

  

  procedure SetEventer();

  

  procedure SetSession();

  

  procedure Notification(); override;

  

  procedure ConnectAction(); virtual;

  

  procedure AcceptAction(); virtual;

  

  procedure ReceiveAction(); virtual;

  

  procedure SendAction(); virtual;

  

  procedure ErrorAction(); virtual;

  

  procedure ConnectEvent(); virtual;

  

  procedure DisconnectEvent(); virtual;

  

  procedure AcceptEvent(); virtual;

  

  procedure ReceiveEvent(); virtual;

  

  procedure CanSendEvent(); virtual;

  

  procedure ErrorEvent(); virtual;

  

  procedure EventerError();

  

  procedure RegisterWithEventer; virtual;

  

  procedure FreeSocks(); virtual;

  

public

  constructor Create(); override;

  

  destructor Destroy; override;

  

  function Connect();

  

  function Listen();

  

  function Get(); virtual; abstract;

  

  function GetMessage(); virtual; abstract;

  

  function Send(); virtual; abstract;

  

  function SendMessage(); virtual; abstract;

  

  function IterNext; virtual; abstract;

  

  procedure IterReset; virtual; abstract;

  

  property OnError: TLSocketErrorEvent; [rw]

  

  property OnReceive: TLSocketEvent; [rw]

  

  property OnDisconnect: TLSocketEvent; [rw]

  

  property OnCanSend: TLSocketEvent; [rw]

  

  property Socks []: TLSocket; default; [r]

  

  property Count: Integer; [r]

  

  property Connected: Boolean; [r]

  

  property ListenBacklog: Integer; [rw]

  

  property Iterator: TLSocket; [r]

  

  property Timeout: Integer; [rw]

  

  property Eventer: TLEventer; [rw]

  

  property EventerClass: TLEventerClass; [rw]

  

  property Session: TLSession; [rw]

  

end;

Inheritance

TLConnection

  

|

TLComponent,ILDirect,ILServer,ILClient

  

|

TObject,ILComponent



CT Web help

CodeTyphon Studio