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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
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?
The protocol uses TCP connections and not UDP, that might be your mistake. I should have mentioned it in the documentation.
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