net.codescore.gserver
Class Message
java.lang.Object
net.codescore.gserver.Message
public class Message
- extends Object
HEADER_LEN
public static final int HEADER_LEN
- See Also:
- Constant Field Values
MESSAGE_LENGTH
public static final int MESSAGE_LENGTH
- See Also:
- Constant Field Values
VERSION
public static final int VERSION
- See Also:
- Constant Field Values
p
private final byte[] p
Message
public Message(byte[] payload)
Message
public Message(String payload)
readHeader
public static int readHeader(byte[] incomming)
makeHeader
private static byte[] makeHeader(byte[] payload)
pad
private static byte[] pad(byte[] payload)
padHeader
private static byte[] padHeader(String s)
getFullMessage
public byte[] getFullMessage()
getMessage
public byte[] getMessage()
toString
public String toString()
- Overrides:
toString in class Object
Copyright 2008 © Adam Cornett, Andrew Conner All Rights Reserved.