Pong Method
      
 

Description

Called when response to Ping arrives.


Return Type

None  


Syntax

object.Pong Owner, Contact, ErrorCode, ErrorText



The Pong Method syntax has these parts:

Part Description
object An expression evaluating to an object of type IwodXMPPNotify.
Owner Required. A wodXMPP object.
Contact A XMPPContact object. Provides you with reference to XMPPContact object.
ErrorCode A Long value. Represents error number for error that occurred, if any.
ErrorText A String value. Returns string representation of the error, if any.

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.

This notification method is called whenever wodXMPP receives ping back from the remote side. This will usually be caused because you 'pinged' server in order to check the connection state, but this can also occur if you pinged another contact. In that case, The event will also provide you with Contact parameter, which will reference to XMPPContact object. This will allow you to retrieve information about that Contact.

Many servers don't even implement Ping as a service of theirs. In that case ErrorCode will be set - but even that is good for you and can be considered as good in terms of connection being alive - you got *some* response, right?