comparison app/src/main/java/ch/ethz/ssh2/packets/PacketChannelSuccess.java @ 438:d29cce60f393

migrate from Eclipse to Android Studio
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Dec 2015 11:23:55 -0800
parents src/ch/ethz/ssh2/packets/PacketChannelSuccess.java@91a31873c42a
children
comparison
equal deleted inserted replaced
437:208b31032318 438:d29cce60f393
1 /*
2 * Copyright (c) 2006-2013 Christian Plattner. All rights reserved.
3 * Please refer to the LICENSE.txt for licensing details.
4 */
5
6 package ch.ethz.ssh2.packets;
7
8 /**
9 * @author Christian Plattner
10 * @version $Id: PacketChannelSuccess.java 160 2014-05-01 14:30:26Z dkocher@sudo.ch $
11 */
12 public final class PacketChannelSuccess {
13
14 private final byte[] payload;
15
16 public PacketChannelSuccess(int recipientChannelID) {
17 TypesWriter tw = new TypesWriter();
18 tw.writeByte(Packets.SSH_MSG_CHANNEL_SUCCESS);
19 tw.writeUINT32(recipientChannelID);
20 payload = tw.getBytes();
21 }
22
23 public byte[] getPayload() {
24 return payload;
25 }
26 }