comparison src/ch/ethz/ssh2/packets/PacketGlobalCancelForwardRequest.java @ 273:91a31873c42a ganymed

start conversion from trilead to ganymed
author Carl Byington <carl@five-ten-sg.com>
date Fri, 18 Jul 2014 11:21:46 -0700
parents
children 071eccdff8ea
comparison
equal deleted inserted replaced
272:ce2f4e397703 273:91a31873c42a
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: PacketGlobalCancelForwardRequest.java 160 2014-05-01 14:30:26Z dkocher@sudo.ch $
10 */
11 public final class PacketGlobalCancelForwardRequest {
12
13 private final byte[] payload;
14
15 public PacketGlobalCancelForwardRequest(boolean wantReply, String bindAddress, int bindPort) {
16 TypesWriter tw = new TypesWriter();
17 tw.writeByte(Packets.SSH_MSG_GLOBAL_REQUEST);
18
19 tw.writeString("cancel-tcpip-forward");
20 tw.writeBoolean(wantReply);
21 tw.writeString(bindAddress);
22 tw.writeUINT32(bindPort);
23
24 payload = tw.getBytes();
25 }
26
27 public byte[] getPayload() {
28 return payload;
29 }
30 }