Hi,
Back onto mailslots. I was doing what you said (get every 2nd message),
and it worked. Until I sent two message together (ie, send one message
then send another immediately after - no pause), and for the first
message, it only sent it once. So this method doesn't work _all_ the
time. So I came up with a better idea. When you send each message, add a
packetnumber to the front. Then, when you receive a message, check if
this packetnumber is >= the last packetnumber. If it is, discard the
message. It's more complicated to implement, but at works all the time
(as far as I can tell).
Later,
Danial.
___
X SLMR 2.1a X
--- Maximus/2 3.00
---------------
* Origin: Hunter Connection OS/2 BBS 24hrs (049) 57-1801 (3:622/403)
|