Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/packets/PacketGlobalForwardRequest.java @ 308:42b15aaa7ac7 ganymed
merge
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 30 Jul 2014 14:21:50 -0700 |
parents | 071eccdff8ea |
children |
comparison
equal
deleted
inserted
replaced
306:90e47d99ea54 | 308:42b15aaa7ac7 |
---|---|
13 private final byte[] payload; | 13 private final byte[] payload; |
14 | 14 |
15 public PacketGlobalForwardRequest(boolean wantReply, String bindAddress, int bindPort) { | 15 public PacketGlobalForwardRequest(boolean wantReply, String bindAddress, int bindPort) { |
16 TypesWriter tw = new TypesWriter(); | 16 TypesWriter tw = new TypesWriter(); |
17 tw.writeByte(Packets.SSH_MSG_GLOBAL_REQUEST); | 17 tw.writeByte(Packets.SSH_MSG_GLOBAL_REQUEST); |
18 | |
19 tw.writeString("tcpip-forward"); | 18 tw.writeString("tcpip-forward"); |
20 tw.writeBoolean(wantReply); | 19 tw.writeBoolean(wantReply); |
21 tw.writeString(bindAddress); | 20 tw.writeString(bindAddress); |
22 tw.writeUINT32(bindPort); | 21 tw.writeUINT32(bindPort); |
23 | |
24 payload = tw.getBytes(); | 22 payload = tw.getBytes(); |
25 } | 23 } |
26 | 24 |
27 public byte[] getPayload() { | 25 public byte[] getPayload() { |
28 return payload; | 26 return payload; |