All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.trilead.ssh2.packets.PacketGlobalTrileadPing Maven / Gradle / Ivy

There is a newer version: 1.0.0-build222
Show newest version

package com.trilead.ssh2.packets;

/**
 * PacketGlobalTrileadPing.
 * 
 * @author Christian Plattner, [email protected]
 * @version $Id: PacketGlobalTrileadPing.java,v 1.1 2008/03/03 07:01:36 cplattne Exp $
 */
public class PacketGlobalTrileadPing
{
	byte[] payload;

	public PacketGlobalTrileadPing()
	{
	}

	public byte[] getPayload()
	{
		if (payload == null)
		{
			TypesWriter tw = new TypesWriter();
			tw.writeByte(Packets.SSH_MSG_GLOBAL_REQUEST);
			
			tw.writeString("trilead-ping");
			tw.writeBoolean(true);

			payload = tw.getBytes();
		}
		return payload;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy