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
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