comparison src/ch/ethz/ssh2/packets/PacketSessionX11Request.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
16 TypesWriter tw = new TypesWriter(); 16 TypesWriter tw = new TypesWriter();
17 tw.writeByte(Packets.SSH_MSG_CHANNEL_REQUEST); 17 tw.writeByte(Packets.SSH_MSG_CHANNEL_REQUEST);
18 tw.writeUINT32(recipientChannelID); 18 tw.writeUINT32(recipientChannelID);
19 tw.writeString("x11-req"); 19 tw.writeString("x11-req");
20 tw.writeBoolean(wantReply); 20 tw.writeBoolean(wantReply);
21
22 tw.writeBoolean(singleConnection); 21 tw.writeBoolean(singleConnection);
23 tw.writeString(x11AuthenticationProtocol); 22 tw.writeString(x11AuthenticationProtocol);
24 tw.writeString(x11AuthenticationCookie); 23 tw.writeString(x11AuthenticationCookie);
25 tw.writeUINT32(x11ScreenNumber); 24 tw.writeUINT32(x11ScreenNumber);
26
27 payload = tw.getBytes(); 25 payload = tw.getBytes();
28 } 26 }
29 27
30 public byte[] getPayload() { 28 public byte[] getPayload() {
31 return payload; 29 return payload;