Getting server info?

  • Thread starter Thread starter Wouter
  • Start date Start date
W

Wouter

Guest
hi im having a bit of a problem getting server info using winsock with visual basic the thing im sending to the server is winsock1.senddata Chr(255) & Chr(255) & Chr(255) & Chr(255) & "info" this return some weird data ÿÿÿÿj00000000000000
but when im sending winsock1.senddata Chr(255) & Chr(255) & Chr(255) & Chr(255) & "players" it returns me the players in the server
does anybodu know what i might be doing wrong ?

here is my code
Code:
Private Sub Command1_Click()
wsck.Close
wsck.Protocol = sckUDPProtocol
wsck.RemoteHost = "213.239.178.50"
wsck.RemotePort = "27017"
wsck.SendData Chr(255) & Chr(255) & Chr(255) & Chr(255) & "info"
End Sub


Private Sub wsck_DataArrival(ByVal bytesTotal As Long)
   Dim strReceived As String
   Dim ControlByte As String
   Dim strFixed As String

    Dim str As String
    wsck.GetData str, vbString, bytesTotal
    txtget.Text = str
    wsck.Close 'Close the connection
End Sub
 
hum how can i parse data if it comes out like this? ÿÿÿÿj00000000000000

maby you can come to the irc chan (#halflife2.coding on irc.quakenet.org where im currently in my name there is Wouter') or add me to msn ([email protected]) and help me out thanks
 
well i finaly got it wokring it seems like they changed the info param to T
thanks McFace for helping me out
 
Back
Top