Menu

Query in Visual Basci

DreyMIX
2003-11-28
2012-09-16
  • DreyMIX

    DreyMIX - 2003-11-28

    Hi all,
    I wanted to know like sending from visual basic 6, the just command for being able to know how many players are connects to you in the server.  I have tried to send packet "playerquery" on port 31457. But nothing does not return behind.

    Sorry for my english.

     
    • Emmanuel Bourg

      Emmanuel Bourg - 2003-11-28

      Did you send the command terminator character as well ? That's 0xFF. Be careful the playerquery command return the number of players connected on Jetrix, but on other servers it returns the number of players in the default channel, that's useless imho. If you want a compatible way of checking tetrinet server i'd suggest using listuser instead.

       
    • DreyMIX

      DreyMIX - 2003-11-28

      Yes, in visual basic I must make "playerquery", it's right?  I put here a part of the code as I have made:

      QueryUDP.RemoteHost = xxx.xxx.xxx.xxx
      QueryUDP.RemotePort = 31457
      QueryUDP.SendData "playerquery"

      Private Sub QueryUDP_DataArrival(ByVal bytesTotal As Long) ' but still does not go to its here :(
      QueryUDP.GetData text1
      DoEvents
      End Sub

      That what mistake still?

       
      • Emmanuel Bourg

        Emmanuel Bourg - 2003-11-28

        The protocol uses TCP connections and not UDP, that might be your mistake. I should have mentioned it in the documentation.

         
    • madlogik

      madlogik - 2006-02-14

      humm might have been awnsered before..
      but what is the full list of commands I can send via telnet (or my vb sockets terminal :) )

      (( like listuser ))

      thanks

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.