Class ConnectionRequestPacket
- java.lang.Object
-
- jmri.jmrix.ipocs.protocol.packets.Packet
-
- jmri.jmrix.ipocs.protocol.packets.ConnectionRequestPacket
-
public class ConnectionRequestPacket extends Packet
Client sends this when initiating a connection.- Since:
- 4.21.2
-
-
Field Summary
Fields Modifier and Type Field Description static byte
IDENT
-
Constructor Summary
Constructors Constructor Description ConnectionRequestPacket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getId()
short
getProtocolVersion()
java.lang.String
getSiteDataVersion()
protected void
parseSpecific(java.nio.ByteBuffer buffer)
protected byte[]
serializeSpecific()
void
setProtocolVersion(short protocolVersion)
void
setSiteDataVersion(java.lang.String siteDataVersion)
-
-
-
Field Detail
-
IDENT
public static final byte IDENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConnectionRequestPacket
public ConnectionRequestPacket()
-
-
Method Detail
-
serializeSpecific
protected byte[] serializeSpecific()
- Specified by:
serializeSpecific
in classPacket
-
parseSpecific
protected void parseSpecific(java.nio.ByteBuffer buffer)
- Specified by:
parseSpecific
in classPacket
-
getProtocolVersion
public short getProtocolVersion()
-
setProtocolVersion
public void setProtocolVersion(short protocolVersion)
-
getSiteDataVersion
public java.lang.String getSiteDataVersion()
-
setSiteDataVersion
public void setSiteDataVersion(java.lang.String siteDataVersion)
-
-