Results 106 to 110 of 110
-
14-07-2012, 13:38 #106
-= TeamSpeak User =-
- Join Date
- Jul 2012
- Posts
- 3
What I have to do with the '.pdb' and the '.xml' file?
-
13-12-2012, 15:09 #107
-= TeamSpeak User =-
- Join Date
- Dec 2012
- Posts
- 1
Get number of online users using TS3QueryLib
I want to display the number of online Teamspeak users in my C# desktop application .
I'm using the non-silverlight library and I tried with the following piece of code which doesn't seem to work
Code:using (TS3QueryLib.Core.Server.QueryRunner queryRunner = new TS3QueryLib.Core.Server.QueryRunner(new SyncTcpDispatcher("my teamspeak address", 10011))) { queryRunner.SelectVirtualServerById(1); Console.WriteLine(queryRunner.GetServerInfo().NumberOfClientsOnline); }
-
31-12-2012, 14:06 #108
-= TeamSpeak User =-
- Join Date
- May 2006
- Location
- Nirgends
- Posts
- 13
maybe your guestquery rights doesn't allow this, try the following:
Code:using (TS3QueryLib.Core.Server.QueryRunner queryRunner = new TS3QueryLib.Core.Server.QueryRunner(new SyncTcpDispatcher("my teamspeak address", 10011))) { queryRunner.Login("serveradmin", "xxx"); queryRunner.SelectVirtualServerById(1); Console.WriteLine(queryRunner.GetServerInfo().NumberOfClientsOnline); }
-
23-02-2013, 06:25 #109
-= TeamSpeak User =-
- Join Date
- Jan 2011
- Location
- Poland
- Posts
- 11
First, Scordo, i've realized that i didn't thank you, so Thank you very much...
I have another question: How to use AsyncTcpDispatcher in console app?
In winForms/WPF in window constructor i have new ATD, += event and ATD.Connect().
Then in event new QueryRunner and operations, but i don't know how use it in console app... i have null exeption right after readytosend event fired.
-
25-04-2013, 23:38 #110
-= TeamSpeak User =-
- Join Date
- Apr 2013
- Posts
- 13
How fitting this is: I'll be doing some stuff with .net in the near future: I wonder if this library could be used in combination with maybe something else to create an ASP.Net interface for TS that could be integrated into other applications like Sueetie and YetAnotherForum?
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
BUG? Repeated query client connect/diconnect
By HHD_HELLBOUND in forum Bug ReportsReplies: 5Last Post: 09-02-2012, 08:04 -
[Solved] Normal user ban others?
By Morfi in forum Server SupportReplies: 21Last Post: 23-03-2010, 15:13 -
Beta 15 Crashing?
By MaXXimus in forum Linux / FreeBSDReplies: 4Last Post: 25-01-2010, 11:52 -
Query Port connection returns "ERROR: invalid id"
By Polecr0c in forum [TeamSpeak 2] Server SupportReplies: 2Last Post: 11-05-2006, 09:05


Reply With Quote