Back to product page

PromptReceived callback method


Called when command prompt string is received.

Syntax

  • Basic
object.PromptReceived (Owner)
The PromptReceived(object,Owner) syntax has these parts:
objectAn expression evaluating to an object of type IwodTelnetNotify
OwnerAn expression evaluating to an object of type wodTelnetDLX

Remarks

NOTE: This method is called only if you implemented IwodTelnetNotify interface in your application, and wodTelnet.Notification property has received reference to instance of your implementation.

If you set Prompt property before you initiated Connect method, then wodTelnetDLX will call this notification method each time it received same string sequence as you defined in Prompt property. This is very handy event to decide WHEN to send new command, 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 operation output.

Platforms

Windows