Results 1 to 2 of 2
-
22-12-2009, 12:37 #1
-= TeamSpeak Addict =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 115
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.
Thanks,
SCO
-
23-12-2009, 14:56 #2
-= TeamSpeak Addict =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 115
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
-
New Teamspeak Query script for php: Teamspeak Display
By MrGuide@NL in forum [TeamSpeak 2] Addons & ScriptsReplies: 347Last Post: 06-08-2010, 17:17 -
server query
By Demona Golgari in forum WindowsReplies: 0Last Post: 22-12-2009, 04:30 -
Can't get user reading from custom database
By CLOWNISIUS in forum [TeamSpeak 2] Server SupportReplies: 8Last Post: 29-01-2007, 08:18 -
serverspy.net query port
By staticx in forum [TeamSpeak 2] Client SupportReplies: 0Last Post: 16-09-2006, 10:28 -
Problem mit User-Registration
By ragnatz in forum [TeamSpeak 2] Server SupportReplies: 4Last Post: 22-06-2006, 08:37


Reply With Quote