James W. Abendschan wrote:
On Fri, 24 Aug 2007, Guy Hulbert wrote:

These are the approaches suggested so far.  I added the last one as a
combination of the others.  Can we see a show of hands for the one
Using rand is bogus.  A random number generator will repeat values.

Time (with sufficient resolution) is equivalent to a sequence ... but
with threads, you would need a lock on the sequence generator.

fqdn + time + peer TCP port will be pretty unique, regardless of
whether you're forking, selecting, or threading.  (fortunately,
multiplexed SMTP does not yet exist.)
mmh, multiplexed?
A mailserver can send multiple mails within one tcp-connection:
"There may be zero or more, transactions in a session." - RFC2821

--
Jens

Reply via email to