Valhalla Legends Forums Archive | Battle.net Bot Development | BNFTP v2

AuthorMessageTime
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!
February 20, 2008, 12:37 AM
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)
February 20, 2008, 1:06 AM
Myndfyr
[quote author=Andy link=topic=17339.msg176545#msg176545 date=1203467876]
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!
[/quote]

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.
February 20, 2008, 1:09 AM
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
February 20, 2008, 1:58 AM

Search