• Welcome to Valhalla Legends Archive.
 

UDP

Started by Tazo, May 02, 2003, 03:24 PM

Previous topic - Next topic

Tazo

Does anyone know where I can find information about UDP? (i.e. what the format is to send it in?)

Thanks.

Grok


Tazo


Yoni

Quote from: laurion on May 02, 2003, 03:24 PM
Does anyone know where I can find information about UDP? (i.e. what the format is to send it in?)

Thanks.
Your question isn't specific enough.
Are you asking about...
* The UDP protocol itself, and how it's implemented over IP? (Follow the URLs Grok posted.)
* General guidelines for sending a UDP message? (There are no special rules. Each datagram retains its size as it is not a streaming protocol like TCP, and unlike TCP, the protocol does not guarantee datagrams arriving at all, arriving in the right order or the integrity of sent datagrams - although it naturally tries to maximize those.)
* The format of Battle.net-related UDP messages? (BnetDocs might have some minimal info on this.)

Grok

Actually RFC 1180 looks quite educational as well.


Mesiah / haiseM

UDP is a faster, but smaller protocol designed mostly for internet games. Because the packets are small and it is so fast, it helps reduce the wait and connection procedure used with TCP. a UDP socket just sits and waits for data from anywhere, and just sends it back, therefore, if you wanted to block somebody, it would have to be implemented into a protocol or something of the sort.
]HighBrow Innovations
Coming soon...

AIM Online Status: 

tA-Kane

Quote from: MesiaH on May 03, 2003, 07:57 PMif you wanted to block somebody [on UDP], it would have to be implemented into a protocol or something of the sort.
You're assuming that somebody would be willing to simply not send you packets. No, the best way to block somebody in a protocol-less environment is to simply ignore them on your end (disregard packets coming in from their IP). There's not much you can do elsewise.
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com

Grok

Quote from: MesiaH on May 03, 2003, 07:57 PM
UDP is a faster, but smaller protocol designed mostly for internet games.

Revisionist history is never pretty.

Arta

#8
Quote from: MesiaH on May 03, 2003, 07:57 PM
UDP is a faster, but smaller protocol designed mostly for internet games.

Are you kidding? UDP was designed when pong was revolutionary...

Quote
This protocol  provides  a procedure  for application  programs  to send
messages  to other programs  with a minimum  of protocol mechanism.
 The
protocol  is transaction oriented, and delivery and duplicate protection
are not guaranteed.  Applications requiring ordered reliable delivery of
streams of data should use the Transmission Control Protocol (TCP).

rofl @ "Revisionist history is never pretty", btw :)

Mesiah / haiseM

im no good with explaining things the way i mean to, with text anyways  :-\
]HighBrow Innovations
Coming soon...

AIM Online Status: 

Grok

Quote from: MesiaH on May 05, 2003, 02:47 PM
im no good with explaining things the way i mean to, with text anyways  :-\

Come on, relax :) You're going to have to laugh at yourself occasionally to hang with this crowd.  We'll catch most every little detail.

What you meant to say was internet game programmers tend to prefer UDP, because it is smaller and faster than TCP, where speed is a big factor.

Mesiah / haiseM

yes thats exactly what i meant..
]HighBrow Innovations
Coming soon...

AIM Online Status: