Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.SSH.BaseComponent

Feature notes: SSH implementation notes

Classes, interfaces and records

classTstCustomSSHThreadPoolComponent

(no public members)

classtPooledThread

inherits from TThread

constructor Create(aOwner: TstCustomSSHThreadPoolComponent); destructor Destroy; override; procedure Kill;

classTstCustomSSHThreadPoolComponent

inherits from TstCustomProtoComponent

constructor Create(aOwner: TComponent); override;
Sets up the connection-serving worker-thread pool (the all/active/pooled thread lists). Applications rarely call this directly; it runs when the derived SSH client or server component is constructed. » member page
destructor Destroy; override;
Terminates every worker thread (TerminateAll) and frees the pool lists. An application only reaches this by freeing the SSH component; it is the orderly shutdown of all in-flight connection threads. » member page
property CurrentThreadCount: Integer read fCurrentThreadCount;
Live count of worker threads currently in existence (both actively serving a connection and idle-but-pooled). Full description »

classTstCustomSSH

constructor Create(aOwner: TComponent); override;
Constructs the SSH transport component. The algorithm option lists are built by the inherited constructor calling the overridden CreateOptionLists; this constructor additionally invokes the optional gRegisterOptions hook (a design-time-only callback, wired to a no-op DummyRegister by the SSH regi... Full description »
destructor Destroy; override;
Tears down the SSH transport component. An application reaches this only by freeing the component; it releases the option lists and pooled connection threads inherited from the thread-pool base. » member page

Types (enumerations, sets, aliases)

typetPooledThreadClass

  tPooledThreadClass = class of tPooledThread;

proctRawConnect

  tRawConnect = procedure(aSocket: tSocket; var aSSHSocket: tSocket) of object;

proctRawClose

  tRawClose = procedure(aSocket: tSocket) of object;

proctRawRecvLength

aResult: the octets that can be read now. A handler that provides the socket itself sets it NEGATIVE when nothing is left and the connection has ended (closed by the peer, reset); 0 is taken as "nothing yet", so a connection that ends while reported as 0 is polled for ever.

  tRawRecvLength = procedure(aSocket: tSocket; var aResult: Integer) of object;

proctRawRecv

  tRawRecv = procedure(aSocket: tSocket;
                 const aBuffer: tBytes;
                       aOffset,
                       aCount : Integer;
                   var aResult: Integer) of object;

proctRawSend

  tRawSend = procedure(aSocket: tSocket;
                 const aBuffer: tBytes;
                       aOffset,
                       aCount : Integer;
                   var aResult: Integer) of object;

procTProcedure

  TProcedure = procedure;

Routines