comparison src/ch/ethz/ssh2/packets/PacketGlobalCancelForwardRequest.java @ 307:071eccdff8ea ganymed

fix java formatting
author Carl Byington <carl@five-ten-sg.com>
date Wed, 30 Jul 2014 14:16:58 -0700
parents 91a31873c42a
children
comparison
equal deleted inserted replaced
305:d2b303406d63 307:071eccdff8ea
13 private final byte[] payload; 13 private final byte[] payload;
14 14
15 public PacketGlobalCancelForwardRequest(boolean wantReply, String bindAddress, int bindPort) { 15 public PacketGlobalCancelForwardRequest(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("cancel-tcpip-forward"); 18 tw.writeString("cancel-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;