Feature notes: SSH implementation notes
(no public members)
procedure ReadData(const aChannel: iSSHServerChannel);
procedure ChannelClosed;
inherits from Exception
(no public members)
function GetRemoteChannel: UInt32;
function DoConnected(aRemoteChannel : UInt32; aRemoteWindowSize: Integer; aRemotePacketSize: Integer; const aBuf : tBytes; aOffset, aLength : Integer; var aReasonCode : UInt32; var aErrorMsg : string) : Boolean;
procedure DoDisconnected(aErrorCode : UInt32; const aErrorMessage: string);
function HandleRequest(const aRequestType: string; const aBuf : tBytes; aOffset, aCount : Integer) : Boolean;
procedure RemoveFromBroker;
function BrokerCallsDone: Boolean;
procedure IncreaseWindow(aAdd: UInt32);
procedure ResetLocalWindow;
procedure CloseLocalWindow;
procedure WriteChannelData(const aData : tBytes; aOffset: Integer; aCount : Integer);
procedure DiscardChannelData(aCount: Integer);
procedure BeginSubSystemThread;
procedure EndSubSystemThread;
property RemoteChannel: UInt32 read GetRemoteChannel;
(no public members)
inherits from iSSHWindowedChannel
function GetBroker: tAbstractSSHServerChannelBroker;
function GetLocalChannel: UInt32;
function GetRemoteChannel: UInt32;
function GetPeerEOF: Boolean;
procedure SendEOF;
function GetTransport: iSSHServerTransport;
property Broker: tAbstractSSHServerChannelBroker read GetBroker;
property LocalChannel: UInt32 read GetLocalChannel;
property RemoteChannel: UInt32 read GetRemoteChannel;
property PeerEOF: Boolean read GetPeerEOF;
property Transport: iSSHServerTransport read GetTransport;
inherits from iSSHServerChannel
function GetSubSystemName: string;
procedure SetSubSystem(const aSubSystem: iSSHServerSubSystem);
procedure SetThreadPrio(const aValue: Integer);
property SubSystemName: string read GetSubSystemName;
function WaitForEvent(aTimeout: Cardinal): TWaitResult;
inherits from iSSHServerChannel
procedure RemoveSender;
inherits from iSSHServerChannelForwarded
function GetLocalAddress: string;
function GetLocalPort: UInt32;
function GetRemoteAddress: string;
function GetRemotePort: UInt32;
property LocalAddress: string read GetLocalAddress;
property LocalPort: UInt32 read GetLocalPort;
property RemoteAddress: string read GetRemoteAddress;
property RemotePort: UInt32 read GetRemotePort;
inherits from iSSHServerChannelForwarded
function GetHostToConnect: string;
function GetPortToConnect: UInt32;
function GetOriginatorHost: string;
function GetOriginatorPort: UInt32;
property HostToConnect: string read GetHostToConnect;
property PortToConnect: UInt32 read GetPortToConnect;
property OriginatorHost: string read GetOriginatorHost;
property OriginatorPort: UInt32 read GetOriginatorPort;
procedure Close;
function RecvLength: Integer;
function Recv(const aBuffer: tBytes; aOffset, aCount : Integer; aBlock : Boolean = True) : Integer;
function Send(const aBuffer: tBytes; aOffset, aCount : Integer) : UInt32;
inherits from iSSHDirectRawEvents
procedure Connect(const aChannel : iSSHServerChannel; const aHostToConnect : string; aPortToConnect : UInt32; const aOriginatorAddress: string; aOriginatorPort : UInt32);
(no public members)
function GetActive: Boolean;
procedure BeginSubSystemThread;
procedure EndSubSystemThread;
function SupportsSubSystem(const aChannel: iSSHServerChannel): Boolean;
function ExecuteSubSystem(const aChannel: iSSHServerChannel): Boolean;
function FindListener(const aRequest: string; aBroker : tAbstractSSHServerChannelBroker) : tAbstractSSHForwardedListener;
function FindSender(const aChannel : iSSHServerChannel; const aChannelType: string; const aBuf : tBytes; aOffset : Integer; aCount : Integer) : iSSHDirectRawEvents;
function HostNameToAddress(const aChannelType: string; const aHostName : string) : string;
function SupportsTcpIpForward(const aUsername: string; const aAddress : string; aPort : UInt32) : Boolean;
function SupportsDirectTcpIp(const aUsername: string; const aAddress : string; aPort : UInt32) : Boolean;
function BeforeSendIgnore(const aTransport : iSSHTransport; aTicksSinceLast: Cardinal; var aLength : Integer) : Boolean;
procedure Execute;
function GetName: string;
function HandleGlobalRequest(const aRequest: string; const aBuf : tBytes; aOffset : Integer; aCount : Integer) : Boolean;
procedure RemoveFromBroker;
property Name: string read GetName;
inherits from iSSHForwardedListener
function GetBindAddress: string;
function GetBindPort: UInt32;
property BindAddress: string read GetBindAddress;
property BindPort: UInt32 read GetBindPort;
inherits from TInterfacedObject
constructor Create(const aTransport : iSSHServerTransport);
procedure Close(aRemoteChannel: UInt32); virtual; abstract;
procedure SendEOF(aRemoteChannel: UInt32); virtual; abstract;
function Send(aRemoteChannel: UInt32; const aData : tBytes; aOffset, aCount : Integer) : UInt32;
function SendRaw(const aData : tBytes; aOffset, aCount : Integer) : UInt32;
procedure IncreaseWindow(aLocalChannel: UInt32; aAdd : UInt32);
function GetLocalChannel(aLocalChannel: UInt32) : iSSHServerChannel; virtual; abstract;
(no public members)
inherits from tObjectMapping
implements iSSHForwardedListener
constructor Create(aBroker: tAbstractSSHServerChannelBroker; const aServer: iSSHServer);
destructor Destroy; override;
destructor Destroy; override;
constructor Create(const aServer : iSSHServer; const aTransport : iSSHServerTransport; aChannels : Integer; aWindowSize: UInt32; aPacketSize: UInt32);
destructor Destroy; override;
procedure Execute;
procedure Close(aRemoteChannel: UInt32); override;
procedure SendEOF(aRemoteChannel: UInt32); override;
function GetLocalChannel(aLocalChannel: UInt32) : iSSHServerChannel; override;
(no public members)
inherits from TThread
constructor Create(aChannel: tSSHServerChannel);
destructor Destroy; override;
procedure ReadData;
procedure SetEvent;
procedure TerminateAndWait;
function WaitForEvent(aTimeout: Cardinal): TWaitResult;
constructor Create(const aBroker : tAbstractSSHServerChannelBroker; aWindowSize: UInt32; aPacketSize: UInt32); virtual;
destructor Destroy; override;
class function FindClass(const aName: string): tSSHServerChannelClass;
inherits from tCustomSSHServerChannel
implements iSSHServerChannelSession
constructor Create(const aBroker : tAbstractSSHServerChannelBroker; aWindowSize: UInt32; aPacketSize: UInt32); override;
destructor Destroy; override;
inherits from tCustomSSHServerChannel
(no public members)
(no public members)
inherits from tCustomSSHServerChannelForwarded
(no public members)
(no public members)