Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstCustomSSHServer.StartPeerTransport

function StartPeerTransport(aSocket : Cardinal; aCreatePeerThread: Boolean) : iSSHServerTransport;
Entry point a socket listener calls once per accepted TCP connection: it wraps the raw socket handle in a new SSH server transport, runs the SSH handshake and user-authentication, then serves the client's channels. Pass aCreatePeerThread=True to hand the connection off to its own tSSHClientServerThread (the usual pattern - see the shipped TstSSHSocketServer, whose accept loop calls this per client); pass False to run the session synchronously on the caller's thread. Server-side only.