Hi,

On Oct 6, 2008, at 3:32 PM, Jonathan Schleifer wrote:

Am 06.10.2008 um 12:55 schrieb Pedro Melo:

End-users should not even see the resource setting. They should only see/know about bare JIDs. Resources are a technicality that have no business at the user level.

I tend to disagree. It's often desired to send to a specific resource - even by Average Joe.

Sure, I agree, I'm just saying that using the resource to name each connection is the wrong way to go about it.

Either you want to talk to a specific resource based on capabilities (VoIP is only available on the desktop connection for example), or you want to adjust your conversation to the low-bandwidth device (and you use the disco <identity> to see if the user is on a mobile client).

If we really need to give a name to each resource, then use the name attribute of the disco identity.

resources are, or should be, plumbing. They are a tool for clients and servers to organize themselves. I would strongly recommend that you use the correct protocols (disco basically) for end-user purposes.



He knows you are on your laptop and on your desktop and sees the resources. He sees you're online at your laptop where you are connected via let's say GPRS and can't watch a YouTube video, so he decides to send that link to your desktop at home so you can watch it when you get back. Very desired behaviour which needs static resources.

Desktop, Laptop: use disco <identity>. That's the proper way to do it.

Every example you give, I totally agree with you that they are valid. I'm just saying that the information to make those decisions should be based on disco XEP-0030 and not the resource.

If you start to do that, and my resource is "Portátil" or "PretoGrande" do you know if they are Desktops or GPRS connections? Or should we start to keep a table with all the possible translations for Laptop?

See, we already have the protocol you want to know if a connection/ resource is a PC or a GPRS connection, see http://xmpp.org/registrar/disco-categories.html , in particular http://xmpp.org/registrar/disco-categories.html#client

Adding meaning to resources is wrong, even if it is current standard practice.

Best regards,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: [EMAIL PROTECTED]
Use XMPP!


Reply via email to