wodSSH ActiveX Control - PromptReceived Method
      
 

Description

Called when command prompt string is received.


Return Type

None  


Syntax

object.PromptReceived Owner



The PromptReceived Method syntax has these parts:

Part Description
object An expression evaluating to an object of type IwodSSHNotify.
Owner A 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.