• Welcome to Valhalla Legends Archive.
 

BNFTP v2

Started by Barabajagal, February 19, 2008, 06:37 PM

Previous topic - Next topic

Barabajagal

Just wondering, but what the hell is the point in the message length WORD in version 2 of the File Transfer Protocol? It's always going to be 20 bytes. Nothing's dynamic length.... And the packet that is dynamic doesn't have a length!

Ringo

Blizzard implemented it, enough said :P
Probly back to back compatibility with v1, (cant remember if v1 has dword lengh or word tho, been awhile since i toyed with FTP protocol)

MyndFyre

Quote from: Andy on February 19, 2008, 06:37 PM
Just wondering, but what the hell is the point in the message length WORD in version 2 of the File Transfer Protocol? It's always going to be 20 bytes. Nothing's dynamic length.... And the packet that is dynamic doesn't have a length!

Good in case it ever changes.  Then the socket handler can read appropriate additional data without screwing up the stream.  Similar support is in the generic TLV-style protocols.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Ringo

Trubble is, 2nd C>S message doesnt have a lengh header, so could easily brake if the TCP stream broke up the message, unless they handle it with out needing a lengh header.
I would guess that having the lengh in the 1st message, works better for both versions of the protocol.
Who knows what goes through the head of the people who get payed to implement this stuff, sure they had a good reassion for doing it the way they did tho :P