Back to product page

PromptReceivedEvent event


Fires when wodSSH.NET receives prompt string from the server.

Syntax

  • C#
  • VB.NET
delegate void PromptReceivedDelegate(object Sender, EventArgs Args);

Delegate Sub PromptReceivedDelegate(ByVal Sender As Object, ByVal Args As EventArgs)

Remarks

If you set Prompt property (before or during the connection with the server), wodSSH.NET will fire this event each time it received same string sequence as you defined in Prompt property.

This is very handy event to determine WHEN to send new commands, because you don't have to parse received data to determine if command output has finished or not.
Also, if Prompt property is set, you will never receive same string sequence when Receive method is called. This makes easy to examine command output operation.

Platforms

Windows