[muscle] Re: Question about the collection that holds the messages

  • From: "Jeremy Friesner" <jaf@xxxxxxxxxxxx>
  • To: muscle@xxxxxxxxxxxxx
  • Date: Thu, 26 Aug 2004 09:28:49 PDT (-0700)

> What I'm doing right now is inserting the date in milliseconds in the =3D
> middle of the message, to avoid repetition:
> I don't know if this is the best solution for the problem, or if there's =3D
> a more elegant way.

How about having each client keep an integer counter, and increment the counter 
before each Message it uploads=3F  Use the counter value instead of the 
time-in-milliseconds.  That way you are guaranteed a unique node name, even if 
two Messages are sent within the same millisecond.


Other related posts: