On 23 May 2014 05:30, "priya v" <[email protected]> wrote:
>
> Presence of buddy itself is indicative of network availability. Is my
understanding right? If yes, then is ping required to determine network
availability?
>

Not really. A ping is sometimes used by servers to check client
connectivity, but otherwise they're mostly used for diagnostics.

So for most purposes, presence is fine.

> Also, does this mean XMPP server should allow pings only between buddies?
>

A server might filter all sorts of traffic. But in general, clients should
except servers to route through traffic normally, and in this case be
prepared to respond with an error as of they weren't online.

It's not ideal, but probably good enough for most cases.

> Thanks,
> Priya
>
> On 22-May-2014 6:07 PM, "Dave Cridland" <[email protected]> wrote:
>>
>> On 22 May 2014 08:03, priya v <[email protected]> wrote:
>>>
>>> Security Considerations under XEP for PING (XEP-0199) states this -
>>>
>>> "If a connected resource receives a ping request but it does not want
to reveal its network availability to the sender for any reason (e.g.,
because the sender is not authorized to know the connected resource's
availability), then it too MUST reply with a <service-unavailable/> error."
>>>
>>> How does one determine if the sender is authorized or not authorized to
know the connected resources's availability?
>>>
>>
>> The presence subscription state (ie, in the roster) would tell you this.

Reply via email to