throws IOException {
log.debug("Requesting X11 forwarding for display " + display +
" using cookie " + cookie);
ByteArrayWriter baw = new ByteArrayWriter();
baw.writeBoolean(false);
baw.writeString("MIT-MAGIC-COOKIE-1");
baw.writeString(cookie);
baw.writeUINT32(new UnsignedInteger32(String.valueOf(display)));
return connection.sendChannelRequest(this, "x11-req", true,