273
|
1 /*
|
|
2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved.
|
|
3 * Please refer to the LICENSE.txt for licensing details.
|
|
4 */
|
|
5 package ch.ethz.ssh2.packets;
|
|
6
|
|
7 /**
|
|
8 * @author Christian Plattner
|
|
9 * @version $Id: PacketSessionStartShell.java 160 2014-05-01 14:30:26Z dkocher@sudo.ch $
|
|
10 */
|
|
11 public final class PacketSessionStartShell {
|
|
12 private final byte[] payload;
|
|
13
|
|
14 public PacketSessionStartShell(int recipientChannelID, boolean wantReply) {
|
|
15 TypesWriter tw = new TypesWriter();
|
|
16 tw.writeByte(Packets.SSH_MSG_CHANNEL_REQUEST);
|
|
17 tw.writeUINT32(recipientChannelID);
|
|
18 tw.writeString("shell");
|
|
19 tw.writeBoolean(wantReply);
|
|
20 payload = tw.getBytes();
|
|
21 }
|
|
22
|
|
23 public byte[] getPayload() {
|
|
24 return payload;
|
|
25 }
|
|
26 }
|