[JDEV] Transports & Presence

Keith Minkler kminkler at jabber.com
Tue Apr 3 13:54:23 CDT 2001

> I assumed that simply sending the server a packet like:
> <presence from='user at transport/resource'/>
> would cause the server to send presence to everyone who has subscribed
> to that user. However, the server comes back with "Packet delivery
> failed, invalid packet".

That is an invalid packet (coming from a transport), becuase there is
no destination. When a user sends a packet without a destination, the
server puts the destination on there for them (the local server becomes
the destination), but when you are working from a transport every destination
must be explicit.  

Therefore, your transport must keep track of every user that has a
subscription to the transport *AND* who's presence they are watching.
so that when your transport gets presence info from the external network,
it simply needs to search these lists for people to send out presence to,
then it has to send a single presence packet *FOR EACH* person it needs
to send it to, each time making sure the destination is correct.

At least, that's what I think you are trying to do.. =}

Keith Minkler

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20010403/fb07b0c0/attachment-0002.pgp>

More information about the JDev mailing list