Back to product page

PromptReceived method


Called when command prompt string is received.

Type

None

Syntax

  • Basic
object.PromptReceived Owner
The PromptReceived(object,Owner) syntax has these parts:
objectAn expression evaluating to an object of type IwodSSHNotify.
OwnerA wodSSHCom object.

Remarks

This method is called only if you implemented the IwodSSHNotify interface in your application, and the wodSSH.Notification property has received a reference to the instance of your implementation.

If you set the Prompt property before you initiated the Connect method, then wodSSH will fire this notification each time it receives a string sequence which matches the one defined in the Prompt property.

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

Platforms

Windows