Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/packets/PacketChannelFailure.java @ 342:175c7d68f3c4
merge ganymed into mainline
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 31 Jul 2014 16:33:38 -0700 |
parents | 91a31873c42a |
children |
comparison
equal
deleted
inserted
replaced
272:ce2f4e397703 | 342:175c7d68f3c4 |
---|---|
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: PacketChannelFailure.java 160 2014-05-01 14:30:26Z dkocher@sudo.ch $ | |
11 */ | |
12 public final class PacketChannelFailure { | |
13 private final byte[] payload; | |
14 | |
15 public PacketChannelFailure(int recipientChannelID) { | |
16 TypesWriter tw = new TypesWriter(); | |
17 tw.writeByte(Packets.SSH_MSG_CHANNEL_FAILURE); | |
18 tw.writeUINT32(recipientChannelID); | |
19 payload = tw.getBytes(); | |
20 } | |
21 | |
22 public byte[] getPayload() { | |
23 return payload; | |
24 } | |
25 } |