Private Sub OnRecieve(ByVal ar As IAsyncResult) 'when something is received from server
Dim client As Socket = ar.AsyncState
client.EndReceive(ar)
Dim bytesRec As Byte() = byteData
Dim message As String = System.Text.ASCIIEncoding.ASCII.GetString(bytesRec) 'here is the message from server
Process(message, True)
End Sub