Instruct the proxy server to connect itself to the SSH server on our behalf.
'Declaration
Public MustOverride Function Handshake( _
ByVal As Stream, _
ByVal As String, _
ByVal As Integer _
) As Byte()
'Usage
Dim instance As ProxyClient
Dim socketStream As Stream
Dim hostName As String
Dim port As Integer
Dim value() As Byte
value = instance.Handshake(socketStream, hostName, port)
Parameters
- socketStream
- A System.IO.Stream that represents the network stream to the proxy server.
- hostName
- A System.String that represents the address of the SSH server to connect to.
- port
- A System.Byte that represents the port number of the SSH server.
Return Value
A
System.Byte array that contains any data that might have been received immediately after the handshake completed. Can be a null reference (
Nothing in Visual Basic).
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2