Results 1 to 4 of 4
-
28-04-2012, 08:37 #1
-= TeamSpeak User =-
- Join Date
- Feb 2012
- Posts
- 18
Server Query - Open Connection Issue
Note:
For this message, please understand that the characters '\n', '\r' and '\0' refer to the ascii values 10, 13, and 0, respectively. Therefore, '\n' is equal to the "new line" character, '\r' is equal to the "line feed" character, and '\0' is equal to the "null" character.
Hello,
I posted a while ago (Server 3.0.1) with some issues related to \n\r and \0 not being present on the end of responses from the Teamspeak 3 server query interface. As I'm moving back into development on the project, I've found that the welcome message from the Teamspeak 3 server does not append a \0 to the end. For example:
Note:Code:TS3\n\r\0Welcome to the TeamSpeak 3 ServerQuery interface, type "help" for a list of commands and "help <command>" for information on a specific command.\n\r
The bolded \0 in the above response is normally removed by the socket. I've included it in this example to better explain the second issue described at the end of this post.
This causes the socket I'm using to receive information to time out while waiting for more information. I'm able to work around this by waiting an arbitrary amount of time before reading from the socket, then checking to see if it ends with \n\r, but this is sub-optimal. If I am doing something wrong, please let me know.
Also, the "TS3\n\r" portion ends with a \0 regardless if there is a Teamspeak 3 welcome message or not. Without manually waiting before receiving the response, it's impossible to tell if more information is being transmitted or not. Even then, you may not wait long enough and miss the response anyway.
Edit:
This was tested on server version 3.0.3.Last edited by Imisnew2; 28-04-2012 at 10:00.
-
03-05-2012, 14:45 #2
-= TeamSpeak User =-
- Join Date
- Feb 2012
- Posts
- 18
Ok, any takers?
-
06-05-2012, 11:53 #3
-= TeamSpeak User =-
- Join Date
- Feb 2012
- Posts
- 18
-
31-05-2012, 06:16 #4
-= TeamSpeak Team =-
- Join Date
- Jun 2002
- Location
- Krün / Germany
- Posts
- 1,965
just validated this and you are right, there is a \0 added to the FIRST string we send to the socket. which is not a wanted behaviour from us.
i suggest to just remove any \0 and rely on \0x0a\0x0d
we change the tcp stack soon anyway, so we wont put any effort into this for now.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Permissions Issue; Admin Server Query
By markgm5 in forum Permission SystemReplies: 4Last Post: 26-12-2009, 20:47 -
Server query PWD issue...
By hetrust in forum Server SupportReplies: 4Last Post: 23-12-2009, 22:28 -
Server crashes. Which port to open in firewall for connection to accounting server?
By PhoenixHawk in forum Server SupportReplies: 4Last Post: 22-12-2009, 08:23 -
server connection issue
By coldfusion in forum [TeamSpeak 2] Client SupportReplies: 7Last Post: 29-05-2009, 16:18


Reply With Quote
