Notice to all users

We are migrating towards a new forum system located at, as such this forum will become read-only on January 29, 2020

Results 1 to 2 of 2
  1. #1
    Join Date
    December 2009

    Correctly reading Query responses??

    Hello to all developers

    First of all: I'm not using PHP, I'm using C# + Silverlight

    Am I the only one trying to determine how to always successfully read the query-port responses?
    How do you detect how often you have to call "read" on the socket to be sure you got the whole response?

    Why am I asking this? For example when I send a "version" query call I sometimes get the whole response with one call and sometimes the status line "error id= ...." is retrieved sending an additional call. So how do I know when to do additional calls? I cant see a pattern that I could use to detect this, do I miss something? I saw one lib written in PHP thats searching the response for "id=" but thats bad coding and also does not work always (For example when doing a help-call where this part is contained in the examples of the command the help is for). I dont know why the other PHP libs work, as lon as i could read the php code they are calling the read as long as something is "returned". But what does "returned" mean? When I do a call to read and nothing is there to read the call is waiting until something is to be read. Sure I can cancel the call after a specified time but thats bad coding too.

    Beside this, TS3 also provides "callbacks" using "servernotifyregister" where the TS3 server sends notify messages when some event occured. How to detect them correctly and how to make sure that callback calls dont interfere with command-results?

    Ok, that was a lot of text to read, i guess there is an easy answer for this and I'm just too weary to get it.


  2. #2
    Join Date
    December 2009
    bump!! Please, can any of the TS3-Devs answer on this question? Whats the logic you supposed us to use?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [No Bug] Server query date information not correctly
    By lundz in forum Bug Reports [EN/DE]
    Replies: 1
    Last Post: August 28th, 2013, 03:52 PM
  2. Replies: 0
    Last Post: July 30th, 2013, 07:24 PM
  3. Multi-line Serverquery listing responses.
    By Morthawt in forum Suggestions and Feedback
    Replies: 1
    Last Post: July 8th, 2012, 02:17 PM
  4. Lua channel reading
    By Digital-Storm in forum Tools / Web Based
    Replies: 1
    Last Post: January 4th, 2010, 01:51 PM

Posting Permissions

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