• Welcome to Valhalla Legends Archive.
 

packet DWORDS [solved]

Started by z-stars, July 21, 2004, 01:29 PM

Previous topic - Next topic

tA-Kane

Quote from: Adron on July 23, 2004, 01:29 PMYou should look more closely at the original specification. He asked for how to put the bytes in network byte order, not how to put them in the byte order battle.net expects.
I was simply pointing out that Battle.net's byte order is not network byte order, and thusly htonl() shouldn't be useful for Battle.net.

If his post isn't in regards to Battle.net, what's it doing in the Battle.net bot development forum?

I do agree that if all you want/need to do is put the bytes in network byte order, htonl() is what you should use, and not custom code.
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

dxoigmn

Quote from: tA-Kane on July 23, 2004, 10:50 PM
Quote from: Adron on July 23, 2004, 01:29 PMYou should look more closely at the original specification. He asked for how to put the bytes in network byte order, not how to put them in the byte order battle.net expects.
I was simply pointing out that Battle.net's byte order is not network byte order, and thusly htonl() shouldn't be useful for Battle.net.

If his post isn't in regards to Battle.net, what's it doing in the Battle.net bot development forum?

I do agree that if all you want/need to do is put the bytes in network byte order, htonl() is what you should use, and not custom code.

When you first said using htonl() is a problem, you never mentioned Battle.net.