public byte[] getPayload() {
    if (payload == null) {
      TypesWriter tw = new TypesWriter();
      tw.writeByte(Packets.SSH_MSG_CHANNEL_REQUEST);
      tw.writeUINT32(recipientChannelID);
      tw.writeString("pty-req");
      tw.writeBoolean(wantReply);
      tw.writeString(term);
      tw.writeUINT32(character_width);
      tw.writeUINT32(character_height);
      tw.writeUINT32(pixel_width);
      tw.writeUINT32(pixel_height);
      tw.writeString(terminal_modes, 0, terminal_modes.length);

      payload = tw.getBytes();
    }
    return payload;
  }
 public byte[] getPayload() {
   if (payload == null) {
     TypesWriter tw = new TypesWriter();
     tw.writeByte(Packets.SSH_MSG_CHANNEL_REQUEST);
     tw.writeUINT32(recipientChannelID);
     tw.writeString("trilead-ping");
     tw.writeBoolean(true);
     payload = tw.getBytes();
   }
   return payload;
 }
  public byte[] getPayload() {
    if (payload == null) {
      TypesWriter tw = new TypesWriter();
      tw.writeByte(Packets.SSH_MSG_GLOBAL_REQUEST);

      tw.writeString("tcpip-forward");
      tw.writeBoolean(wantReply);
      tw.writeString(bindAddress);
      tw.writeUINT32(bindPort);

      payload = tw.getBytes();
    }
    return payload;
  }
 public byte[] getPayload() {
   if (payload == null) {
     TypesWriter tw = new TypesWriter();
     tw.writeByte(Packets.SSH_MSG_KEXINIT);
     tw.writeBytes(kp.cookie, 0, 16);
     tw.writeNameList(kp.kex_algorithms);
     tw.writeNameList(kp.server_host_key_algorithms);
     tw.writeNameList(kp.encryption_algorithms_client_to_server);
     tw.writeNameList(kp.encryption_algorithms_server_to_client);
     tw.writeNameList(kp.mac_algorithms_client_to_server);
     tw.writeNameList(kp.mac_algorithms_server_to_client);
     tw.writeNameList(kp.compression_algorithms_client_to_server);
     tw.writeNameList(kp.compression_algorithms_server_to_client);
     tw.writeNameList(kp.languages_client_to_server);
     tw.writeNameList(kp.languages_server_to_client);
     tw.writeBoolean(kp.first_kex_packet_follows);
     tw.writeUINT32(kp.reserved_field1);
     payload = tw.getBytes();
   }
   return payload;
 }