Back to product page

Connected callback method


Called when wodXMPP connects to remote server.

Syntax

  • Basic
object.Connected (Owner)
The Connected(object,Owner) syntax has these parts:
objectAn expression evaluating to an object of type IwodXMPPNotify
OwnerAn expression evaluating to an object of type wodXMPP

Remarks

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

Connected notification method will be called after Connect method is issued and wodXMPP successfully connects to the server. If connection fails (for whatever reason, such as bad password) Disconnected notification method will be called instead.

It is possible that wodXMPP will internally negotiate connection parameters, before Connected notification method is called at all. This is done to make wodXMPP as much transparent to protocol used as possible. You might notice packets transmitted to/from server in the meantime, meaning wodXMPP connected already but is still negotiating protocol parameters.

Platforms

Windows