Community Forums Today's Posts     Member List     Archive    
Page 8 of 8 FirstFirst ... 678
Results 106 to 110 of 110
  1. #106
    Join Date
    Jul 2012
    Posts
    3
    What I have to do with the '.pdb' and the '.xml' file?

  2. #107
    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);
                }

  3. #108
    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);
                }

  4. #109
    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.

  5. #110
    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

  1. BUG? Repeated query client connect/diconnect
    By HHD_HELLBOUND in forum Bug Reports
    Replies: 5
    Last Post: 09-02-2012, 08:04
  2. [Solved] Normal user ban others?
    By Morfi in forum Server Support
    Replies: 21
    Last Post: 23-03-2010, 15:13
  3. Beta 15 Crashing?
    By MaXXimus in forum Linux / FreeBSD
    Replies: 4
    Last Post: 25-01-2010, 11:52
  4. Query Port connection returns "ERROR: invalid id"
    By Polecr0c in forum [TeamSpeak 2] Server Support
    Replies: 2
    Last Post: 11-05-2006, 09:05

Posting Permissions

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