Back to product page

StateChange callback method


Called when wodTelnetDLX changes its state.

Syntax

  • Basic
object.StateChange (Owner, OldState)
The StateChange(object,Owner,OldState) syntax has these parts:
objectAn expression evaluating to an object of type IwodTelnetNotify
OwnerAn expression evaluating to an object of type wodTelnetDLX
OldStateStatesEnum enumeration. Represents previous state.

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.

StateChange notification method is called each time wodTelnetDLX internal state changes. Initially, it is set to Disconnected. Once you initiate new connection, it will change to Connecting, etc.. Using this event you can see if there is something happening with wodTelnetDLX, or it is idle and waiting for your commands. You can determine current state using State property.

Platforms

Windows