On Wed, Nov 30, 2011 at 10:04 AM, Bela Ban <b...@redhat.com> wrote: > > > On 11/30/11 8:59 AM, Dan Berindei wrote: > >>> Why don't you send the UUID as a (16 byte) string then ? >>> >> >> Yeah, that would work. However, a UUID is not always a valid UTF-8 >> string, so we should probably define it in the protocol as an array of >> bytes (without any meaning). > > > Yes. We did something similar in JGroups, take a look at > ENCRYPT.byteArrayToHexString(). >
Since HotRod is a binary protocol I meant to send the UUID as it is (no encoding whatsoever). I think sending the UUID as a hex-encoded string, a raw byte array, or a 32-bit hash (since that's all we need on the client) are all valid choices. > -- > Bela Ban > Lead JGroups (http://www.jgroups.org) > JBoss / Red Hat > _______________________________________________ > infinispan-dev mailing list > infinispan-dev@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/infinispan-dev _______________________________________________ infinispan-dev mailing list infinispan-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/infinispan-dev