comparison src/com/trilead/ssh2/packets/PacketGlobalTrileadPing.java @ 0:0ce5cc452d02

initial version
author Carl Byington <carl@five-ten-sg.com>
date Thu, 22 May 2014 10:41:19 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0ce5cc452d02
1
2 package com.trilead.ssh2.packets;
3
4 /**
5 * PacketGlobalTrileadPing.
6 *
7 * @author Christian Plattner, plattner@trilead.com
8 * @version $Id: PacketGlobalTrileadPing.java,v 1.1 2008/03/03 07:01:36 cplattne Exp $
9 */
10 public class PacketGlobalTrileadPing {
11 byte[] payload;
12
13 public PacketGlobalTrileadPing() {
14 }
15
16 public byte[] getPayload() {
17 if (payload == null) {
18 TypesWriter tw = new TypesWriter();
19 tw.writeByte(Packets.SSH_MSG_GLOBAL_REQUEST);
20 tw.writeString("trilead-ping");
21 tw.writeBoolean(true);
22 payload = tw.getBytes();
23 }
24
25 return payload;
26 }
27 }