Beispiel #1
0
 protected override void run(StreamReader sr, StreamWriter sw)
 {
     while (mainThread != null)
     {
         int    id, len;
         byte[] data;
         readPacket(sr, out id, out len, out data);
         faceControl.cmd(id, data);
     }
 }
Beispiel #2
0
    protected override void run(StreamReader sr, StreamWriter sw)
    {
        Debug.Log("Face connected");

        while (mainThread != null)
        {
            int    id, len;
            byte[] data;
            readPacket(sr, out id, out len, out data);
            centerServer.addPacket(id, len, data);
            faceControl.cmd(id, data);
        }

        Debug.Log("Face disconnected");
    }