----- Original Message -----
From: Russ <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 25, 2000 6:17 PM
Subject: [REBOL] Re: Rebol and UDP


> Mat, there is nothing guaranteed about UDP (as you said) since it's
> essentially a "one-way" transmission.  It just sends blindly and hopes the
> packet gets through to someone who wants it.  If you want guaranteed
> connectivity, use TCP or build your own two-way acknowledgement/retry
> scheme on top of UDP.  I cannot say what scheme your game site uses.  And
> I'm not sure you can really do it easily in Rebol since I dunno if you can
> access the packet identifier word.

I think not. But is it needed? I am not sure how it is done in rebol, but I
think REBOL will accept only those packets itself, which contain IP of
appropriate computer in IP or TCP header, and what's more - there is a
number of local port OS assigns to rebol port. So you will surely receive
just packets which are targeted to your computer.

And if you mean obtaining packet number identifier to find out which packets
you miss from the sequence of packets you receive, it's not imho possible
with REBOL. Think in terms of buffered REBOL ports. You have buffer for 10k
bytes set, and it means you will gather more than one packet in there. REBOL
would have to store packet identifiers in a block somewhere in port object
structure, till you read out related data out of the buffer. Hmm, now as I
think about it - without such functionality, UDP implementation in REBOL is
pretty useless then, no? Holger?

Also - port/state/flags doesn't seem to be "real" IP datagram flag
representation (SYN,ACK,URG,FIN,RST)

Well, but take me easy, I am just learnig a little bit from friends
struggling with Scenix TCP/IP stack implementation :-)

> Someone more knowledgable of the
> innards of Rebol would have to answer that.  If not, you'd need to build
> some kind of packet ID into the data format of each packet sent... create
a
> timeout on the sending end... resend if you didn't receive an
> acknowledgement from the receiver in time, etc.  Basically, build TCP!

Very true I think ...

> :)   Hope this helps.  Russ

Or it doesn't :-)

Cheers,
-pekr-
> At 03:32 PM 11/25/00 +0000, you wrote:
> >Heya Mat,
> >
> >MB> Or does Rebol do it automatically when opening a UDP:// URL?
> >
> >Really not having much luck with this ML am I? :(
> >
> >--
> >Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
> >http://www.eurogamer.net | http://www.eurogamer-network.com
> >
> >
> >--
> >To unsubscribe from this list, please send an email to
> >[EMAIL PROTECTED] with "unsubscribe" in the
> >subject, without the quotes.
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to