Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Tazo on May 02, 2003, 03:24 PM

Title: UDP
Post by: Tazo 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.
Title: Re:UDP
Post by: Grok on May 02, 2003, 03:57 PM
This looks meaty.

UDP Decomposition:  http://mike.passwall.com/networking/udppacket.html

Networking site:  http://mike.passwall.com/networking/
Title: Re:UDP
Post by: Tazo on May 02, 2003, 04:07 PM
Quote from: Grok on May 02, 2003, 03:57 PM
This looks meaty.

UDP Decomposition:  http://mike.passwall.com/networking/udppacket.html

Networking site:  http://mike.passwall.com/networking/

Heh, thanks.
Title: Re:UDP
Post by: Yoni on May 02, 2003, 06:20 PM
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.)
Title: Re:UDP
Post by: Grok on May 02, 2003, 10:03 PM
Actually RFC 1180 (http://www.ietf.org/rfc/rfc1180.txt?number=1180) looks quite educational as well.

Title: Re:UDP
Post by: Mesiah / haiseM on May 03, 2003, 07:57 PM
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.
Title: Re:UDP
Post by: tA-Kane on May 04, 2003, 03:48 PM
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.
Title: Re:UDP
Post by: Grok on May 04, 2003, 03:57 PM
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.
Title: Re:UDP
Post by: Arta on May 05, 2003, 01:34 PM
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 :)
Title: Re:UDP
Post by: Mesiah / haiseM on May 05, 2003, 02:47 PM
im no good with explaining things the way i mean to, with text anyways  :-\
Title: Re:UDP
Post by: Grok on May 05, 2003, 05:09 PM
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.
Title: Re:UDP
Post by: Mesiah / haiseM on May 08, 2003, 10:28 PM
yes thats exactly what i meant..