Esempio n. 1
0
  public void destroyWindow(int wid) throws IOException {
    int n = 0;

    destroyWindowBuf[n++] = (byte) Proto.ClientMessageType.DESTROY_WINDOW.ordinal();
    destroyWindowBuf[n++] = 0; // Pad
    destroyWindowBuf[n++] = 0; // Pad
    destroyWindowBuf[n++] = 0; // Pad
    destroyWindowBuf[n++] = (byte) ((wid >> 24) & 0xff);
    destroyWindowBuf[n++] = (byte) ((wid >> 16) & 0xff);
    destroyWindowBuf[n++] = (byte) ((wid >> 8) & 0xff);
    destroyWindowBuf[n++] = (byte) (wid & 0xff);

    slaveSocket.send(sign(destroyWindowBuf));
  }