• Welcome to Valhalla Legends Archive.
 

Quick Question

Started by R.a.B.B.i.T, June 07, 2004, 10:51 PM

Previous topic - Next topic

R.a.B.B.i.T

Quote(DWORD)       Cookie
(STRING)       Clan name
(DWORD)       Clan tag
(BYTE)       Number of users to invite
(STRING[])    Usernames to invite
Should the strings in 0x71 (SID_INVITEMULTIPLEUSERS) be NT or not?  I can't log this, I lost my discs, so I'd appreciate if someone could help.

UserLoser.

Quote from: R.a.B.B.i.T on June 07, 2004, 10:51 PM
Quote(DWORD)       Cookie
(STRING)       Clan name
(DWORD)       Clan tag
(BYTE)       Number of users to invite
(STRING[])    Usernames to invite
Should the strings in 0x71 (SID_INVITEMULTIPLEUSERS) be NT or not?  I can't log this, I lost my discs, so I'd appreciate if someone could help.


Strings are always null terminated when it comes to Battle.net packets!  If they were not null terminated, how would Battle.net know when to split up the data for each username?

R.a.B.B.i.T

I don't know, but I've seen some crazy strings in some of my logs.  Thanks, though.

Soul Taker

AFAIK, there isn't such a thing as a non-NT STRING.  They have a seperate definition  :P

R.a.B.B.i.T

They are strings that don't have a null at the end..there, I defined NonNTString.

I know they are different, but I am using DM's buffer class.

Eli_1

IIRC, there's no such thing as a non-null-terminated string.

Adron

Quote from: Eli_1 on June 08, 2004, 07:53 PM
IIRC, there's no such thing as a non-null-terminated string.

Non-null-terminated strings have been mentioned here. Strings without terminating nulls are common.

Arta

They're DWORD constants...

Adron

#8
In the general case, they exist. One example is pascal strings. In b.net protocols, strings are typically null-terminated.

Arta

Right. They're not common on Battle.net :P

R.a.B.B.i.T

But they're still there ;)

tA-Kane

#11
Quote from: R.a.B.B.i.T on June 09, 2004, 09:27 PMBut they're still there ;)
Can you show me one example of a real NonNTString in the BNCS protocol?

Product (STAR, SEXP, WAR3, CHAT, etc) and Platform (IX86, PMAC, XMAC (and etc?)) IDs are not NonNTStrings, nor are Country Codes (USA and etc). Clan tags are also not NonNTStrings, they're actually DWORDs as well.
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

Zakath

Yes, I'm not aware of a single example of a "non-NT string" on battle.net that isn't actually a DWORD.

The binary connection classes I've written have never had, nor needed, a method for adding a "non-NT string" to the output buffer.

It's all VB's fault! If it actually supported the ability to change how you process a data type...

Insert( (DWORD)'IX86' ); //Platform ID
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

R.a.B.B.i.T

4 character NonNTStrings, DWORDS, all the same.  I was probably wrong, but whatever.

Adron

Check client to client udp communication for fixed length strings? Or perhaps that's D2?