What char(s) does BNet send to signify a new line? I tried \n but it doesn't work =( I need to know this for parsing Strings, you see...
Quote from: Dynobird on August 26, 2005, 08:53 PM
What char(s) does BNet send to signify a new line? I tried \n but it doesn't work =( I need to know this for parsing Strings, you see...
It doesn't send any
If it doesn't send anything, then how does it make new lines?
All I do to receive is:
while(true) {
updateWindow.setNewText((char)in.read());
}
And on my GUI it makes new lines for every different message... even if the message doesn't fill up the GUI space horizontally.
It's called line wrapping. Battle.net doesn't allow newlines at all.
Quote from: UserLoser on August 26, 2005, 08:53 PM
Quote from: Dynobird on August 26, 2005, 08:53 PM
What char(s) does BNet send to signify a new line? I tried \n but it doesn't work =( I need to know this for parsing Strings, you see...
It doesn't send any
It does on thet CHAT protocol IIRC.
Quote from: rabbit on August 26, 2005, 09:47 PM
It's called line wrapping. Battle.net doesn't allow newlines at all.
Profiles?
I thought in http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=17, bnet sends CrLf for a newline inside the end of the string..
vbCrLf is also "\r\n". Not just "\n". And yes it does send that.
If thinking outside of the CHAT protocol, no. In packet 0x0F Bnet sends the message string and you should include the CrLf by yourself... that's how the client does it anyway.
Quote from: Newby on August 27, 2005, 09:19 AM
Quote from: UserLoser on August 26, 2005, 08:53 PM
Quote from: Dynobird on August 26, 2005, 08:53 PM
What char(s) does BNet send to signify a new line? I tried \n but it doesn't work =( I need to know this for parsing Strings, you see...
It doesn't send any
It does on thet CHAT protocol IIRC.
Yes, he's talking about CHAT
The question was already answered on x86's forum, so don't worry about it