Community Forums Today's Posts     Member List     Archive    
Results 1 to 4 of 4

Threaded View

  1. #1
    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:
    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
    Note:
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Permissions Issue; Admin Server Query
    By markgm5 in forum Permission System
    Replies: 4
    Last Post: 26-12-2009, 20:47
  2. Server query PWD issue...
    By hetrust in forum Server Support
    Replies: 4
    Last Post: 23-12-2009, 22:28
  3. Replies: 4
    Last Post: 22-12-2009, 08:23
  4. server connection issue
    By coldfusion in forum [TeamSpeak 2] Client Support
    Replies: 7
    Last Post: 29-05-2009, 16:18

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •