// --------------------------------------
  public void setup() {
    // Make a new Client with an XML file.
    client = new TCPClient(this, "mpe" + ID + ".xml");

    // The size is determined by the client's local width and height
    size(client.getLWidth(), client.getLHeight(), P3D);
    client.enable3D(true);

    resetEvent(client);

    // IMPORTANT, YOU MUST START THE CLIENT!
    client.start();
  }
 // --------------------------------------
 public void frameEvent(TCPClient c) {
   // clear the screen
   background(255);
   for (int x = 0; x < client.getMWidth(); x += 100) {
     pushMatrix();
     translate(x, client.getMHeight() / 2);
     stroke(0);
     noFill();
     rotate(angle);
     box(75);
     popMatrix();
   }
   angle += 0.02f;
 }