Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/packets/PacketWindowChange.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 package ch.ethz.ssh2.packets; | |
2 | |
3 /** | |
4 * Indicates that that size of the terminal (window) size has changed on the client side. | |
5 * <p/> | |
6 * See section 6.7 of RFC 4254. | |
7 * | |
8 * @author Kohsuke Kawaguchi | |
9 */ | |
10 public final class PacketWindowChange { | |
11 private final byte[] payload; | |
12 | |
13 public PacketWindowChange(int recipientChannelID, | |
14 int character_width, int character_height, int pixel_width, int pixel_height) { | |
15 TypesWriter tw = new TypesWriter(); | |
16 tw.writeByte(Packets.SSH_MSG_CHANNEL_REQUEST); | |
17 tw.writeUINT32(recipientChannelID); | |
18 tw.writeString("window-change"); | |
19 tw.writeBoolean(false); | |
20 tw.writeUINT32(character_width); | |
21 tw.writeUINT32(character_height); | |
22 tw.writeUINT32(pixel_width); | |
23 tw.writeUINT32(pixel_height); | |
24 | |
25 payload = tw.getBytes(); | |
26 } | |
27 | |
28 public byte[] getPayload() { | |
29 return payload; | |
30 } | |
31 } |