// receive thread
    private void ReceiveData()
    {
        print(client);
        bool cont = true;

        while (cont)
        {
            try {
                IPEndPoint anyIP = new IPEndPoint(IPAddress.Any, 0);
                byte[]     data  = client.Receive(ref anyIP);
                HandState  hs    = HandState.handStateFromPacket(data);
                hController._hs = hs;
            } catch (Exception err) {
                print(err.ToString());
                cont = false;
            }
        }
    }