Received Event Firing with no Receive Method - WeOnlyDo Discussion board

Received Event Firing with no Receive Method (wodSSH / wodSSH.NET)

by CraigGibbings, Wednesday, June 04, 2014, 10:34 (2430 days ago)
edited by wodSupport, Wednesday, June 04, 2014, 10:58

Unless I am missing something:
Documentation for Received event says:

“Received event will not be fired again until you do Receive data that is currently held in wodSSH's internal buffers”

This is not what I am seeing.
I am seeing Received Events firing on arrival of each data packet even when no Receive method is used. The ByteCount appear to reflect the total number of bytes waiting.
Tthe simple example below demonstrates:

Dim WithEvents Ssh As wodSSHCom

Private Sub Form_Load()
    Set Ssh = New wodSSHCom
End Sub

Private Sub CmdGo_Click()
    With Ssh
  Debug.Print "Start " & .Version
        .HostName = "*****"
        .Login = "*****"
        .PassWord = "*****"
        .Protocol = SSHAuto
    End With
End Sub

Private Sub Ssh_Banner(Text As String)
    Debug.Print "Ssh_Banner " & Len(Text)
    Text = ""
End Sub

Private Sub Ssh_Connected(ByVal ErrorCode As Integer, ByVal ErrorText As String)
    Debug.Print "Ssh_Connected " & ErrorCode & " " & ErrorText
End Sub

Private Sub Ssh_Received(ByVal ByteCount As Integer)
    ' No receive of data
    Debug.Print "Ssh_Received " & ByteCount
End Sub

Ssh_Banner 286
Ssh_Connected 0
Ssh_Received 58
Ssh_Received 1746
Ssh_Received 1768

Complete thread: