Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/packets/PacketIgnore.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 |
---|---|
17 | 17 |
18 public PacketIgnore(byte[] data) { | 18 public PacketIgnore(byte[] data) { |
19 TypesWriter tw = new TypesWriter(); | 19 TypesWriter tw = new TypesWriter(); |
20 tw.writeByte(Packets.SSH_MSG_IGNORE); | 20 tw.writeByte(Packets.SSH_MSG_IGNORE); |
21 | 21 |
22 if(data != null) { | 22 if (data != null) { |
23 tw.writeString(data, 0, data.length); | 23 tw.writeString(data, 0, data.length); |
24 } | 24 } |
25 else { | 25 else { |
26 tw.writeString(""); | 26 tw.writeString(""); |
27 } | 27 } |
28 | |
28 payload = tw.getBytes(); | 29 payload = tw.getBytes(); |
29 } | 30 } |
30 | 31 |
31 public byte[] getPayload() { | 32 public byte[] getPayload() { |
32 return payload; | 33 return payload; |