Results 1 to 4 of 4
-
21-12-2009, 22:18 #1
Line endings in ServerQuery - \n\r instead of \r\n
Hey there,
I hope I'm posting in the right section of this forum... I didn't yet run my ServerQuery tests against a Windows or Mac Teamspeak 3 server, so for now I hope I am.
I just noticed while trying to do some ServerQuery programming that the line endings used there are in fact \n\r. This isn't used by any operating system (Windows: \r\n, Mac: \r, Linux: \n), so I'd like to ask if there is a specific reason for the line endings being like this.
These \n\r line endings are a bit bothersome when trying to parse the line endings with PHP. It ain't impossible, but if it can be fixed, I'd be all for it
Best regards,
StalkerLast edited by St4Lk3R; 21-12-2009 at 22:42.
-
21-12-2009, 23:23 #2
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 66
Actually this is a really nice (simple but amazing) way to differ between single ServerQuery responses (such as error id=0 msg=ok) and multi-line texts that are however to be treated as a single ServerQuery response.
So help returns a text with \r\n as multi-line separator, terminates that response with \n\r, sends the error response terminating with \n\r.
I like it, because that way responses are much easier to separate, and I would like to keep it like that
-
22-12-2009, 04:10 #3
-= TeamSpeak Addict =-
- Join Date
- Jun 2003
- Posts
- 246
So basically, you're saying it really isn't a bug and it really is a feature. :P
-
22-12-2009, 08:44 #4
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 66
Yes, exactly
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[file offline!] Startscript 32/64 bit {start|stop|status|restart|watch}
By Crytix in forum ToolsReplies: 31Last Post: 19-01-2010, 21:25 -
TeamSpeak 2 Anti-Flood Daemon
By ScP in forum [TeamSpeak 2] Addons & ScriptsReplies: 193Last Post: 07-09-2009, 18:27 -
Server startet nicht
By djlars in forum [TeamSpeak 2] Server SupportReplies: 6Last Post: 19-01-2009, 19:07 -
PHP on windows 2003 server help line 45
By cyberxn in forum [TeamSpeak 2] Addons & ScriptsReplies: 4Last Post: 01-04-2006, 18:44 -
TS Client command line: Full list.
By Perma-n00b in forum [TeamSpeak 2] Client SupportReplies: 0Last Post: 18-04-2004, 16:34




Reply With Quote
