0
|
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 }
|