[Sugar-devel] [PATCH sugar] Limit the nick name to be only 8 characters maximum #10737

Sascha Silbe sascha-ml-reply-to-2011-2 at silbe.org
Tue Mar 22 14:00:49 EDT 2011


Excerpts from Simon Schampijer's message of Wed Mar 16 20:41:08 +0100 2011:

> > And what are the adverse consequences if there is a conflict between
> > JoseMariaSuarez and JoseMariaRamirez ?
> >
> > I think you'd want to show that the potential bugginess is not so bad,
> > or else hash the names rather than truncate them.
> 
> http://dev.laptop.org/ticket/10737#comment:6

Comment 6 says:

> http://lists.sugarlabs.org/archive/sugar-devel/2011-March/030436.html 

> I actually think it is better to use the nickname and limit it to 8
> characters. For example if you list the
> available services (avahi-browse) you can more easily recognize which
> machine it is offering.

> I think we do not have to worry clashes that way. The presence id is
> 'nick at avahi_client_host_name' and the
> service name would then be 'room_name:nick at avahi_client_host_name' which
> both would be quite unique, I think.

Like Scott [1] I'm worried that avahi_client_host_name might not
actually be unique. Does avahi guarantee this (on all systems, not just
XOs) and if so, how?

Does the other end always use an explicitly announced value or are there
cases where the name needs to be reconstructed?

Sascha

[1] https://dev.laptop.org/ticket/10737#comment:7
-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 500 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110322/ed62db6d/attachment.pgp>


More information about the Sugar-devel mailing list