Valhalla Legends Forums Archive | Visual Basic Programming | [VB] UDP Header

AuthorMessageTime
PaiD
Does any1 have any information on the UDP Protocol Header?
April 25, 2004, 1:56 PM
iago
http://www.erg.abdn.ac.uk/users/gorry/course/inet-pages/udp.html

This is based on RFC 768:
http://www.ietf.org/rfc/rfc0768.txt?number=768
April 25, 2004, 4:49 PM
Grok
[quote author=iago link=board=31;threadid=6467;start=0#msg56841 date=1082911789]
http://www.erg.abdn.ac.uk/users/gorry/course/inet-pages/udp.html

This is based on RFC 768:
http://www.ietf.org/rfc/rfc0768.txt?number=768
[/quote]

So, Iago, now tell me why most well known ports are odd. :)
April 25, 2004, 6:48 PM
iago
[quote author=Grok link=board=31;threadid=6467;start=0#msg56869 date=1082918937]
[quote author=iago link=board=31;threadid=6467;start=0#msg56841 date=1082911789]
http://www.erg.abdn.ac.uk/users/gorry/course/inet-pages/udp.html

This is based on RFC 768:
http://www.ietf.org/rfc/rfc0768.txt?number=768
[/quote]

So, Iago, now tell me why most well known ports are odd. :)
[/quote]

Because programmers are odd, and they wanted to feel comfortable.
April 25, 2004, 7:21 PM
PaiD
Ok thx for the sites but I was talking about Starcraft udp
April 26, 2004, 2:06 AM
Adron
[quote author=MoNeY link=board=31;threadid=6467;start=0#msg56940 date=1082945203]
Ok thx for the sites but I was talking about Starcraft udp
[/quote]

Perhaps you should've said so then? You can't expect a good answer if you don't ask a clear and well-formulated question.

The Starcraft UDP headers are very much like the D1 UDP headers. They're numbered and have seq and ack fields. There's a mechanism to request retransmission of lost packets. There's a packet class field, with separate numbering for each packet class. There's a packet type field, for packets like game ticks, join game, ping game, etc. There's a checksum of the packet contents, perhaps so it would be harder to fake packets, or to safeguard against corrupted packets on modem/IPX or similar.
April 26, 2004, 11:08 AM
CodeMaster
Very true, he said UDP and realizing this is not a Bot Dev forum. This is specfically a Visual Basic Programming forum, so what format of UDP he is referring to is a mystery without his directon.
May 1, 2004, 7:32 PM
iago
[quote author=CodeMaster link=board=31;threadid=6467;start=0#msg57923 date=1083439940]
Very true, he said UDP and realizing this is not a Bot Dev forum. This is specfically a Visual Basic Programming forum, so what format of UDP he is referring to is a mystery without his directon.
[/quote]

Thanks for explaining my joke :P
May 1, 2004, 7:57 PM
UserLoser.
[quote author=Adron link=board=31;threadid=6467;start=0#msg56967 date=1082977724]
...
The Starcraft UDP headers are very much like the D1 UDP headers. They're numbered and have seq and ack fields. There's a mechanism to request retransmission of lost packets. There's a packet class field, with separate numbering for each packet class. There's a packet type field, for packets like game ticks, join game, ping game, etc. There's a checksum of the packet contents, perhaps so it would be harder to fake packets, or to safeguard against corrupted packets on modem/IPX or similar.
[/quote]

Perhaps you can elaborate some more on the format, along with checksum? :P
May 1, 2004, 8:21 PM
Adron
What more is there to say? I think I've covered most there is in it.. The checksum is a simple 16-bit one, nothing special, and it's calculated over the whole packet with the checksum spot zeroed out.
May 1, 2004, 10:50 PM
iago
It's CRC32. No it isn't.
May 1, 2004, 11:24 PM
UserLoser.
[quote author=Adron link=board=31;threadid=6467;start=0#msg57968 date=1083451803]
What more is there to say? I think I've covered most there is in it.. The checksum is a simple 16-bit one, nothing special, and it's calculated over the whole packet with the checksum spot zeroed out.
[/quote]

Storm.dll address? :P

Edit: Changed location to address due to smart response :P
May 2, 2004, 1:45 AM
Spht
[quote author=UserLoser. link=board=31;threadid=6467;start=0#msg57985 date=1083462356]
[quote author=Adron link=board=31;threadid=6467;start=0#msg57968 date=1083451803]
What more is there to say? I think I've covered most there is in it.. The checksum is a simple 16-bit one, nothing special, and it's calculated over the whole packet with the checksum spot zeroed out.
[/quote]

Storm.dll location? :P
[/quote]

That depends on where you installed the game. For Starcraft, mine's in D:\Games\Starcraft\.
May 2, 2004, 1:51 AM
iago
[quote author=Spht link=board=31;threadid=6467;start=0#msg57986 date=1083462682]
[quote author=UserLoser. link=board=31;threadid=6467;start=0#msg57985 date=1083462356]
[quote author=Adron link=board=31;threadid=6467;start=0#msg57968 date=1083451803]
What more is there to say? I think I've covered most there is in it.. The checksum is a simple 16-bit one, nothing special, and it's calculated over the whole packet with the checksum spot zeroed out.
[/quote]

Storm.dll location? :P
[/quote]

That depends on where you installed the game. For Starcraft, mine's in D:\Games\Starcraft\.
[/quote]

haha, that was great.
May 2, 2004, 6:09 AM

Search