public interface Protocol
Modifier and Type | Field and Description |
---|---|
static String |
COOKIE_NAME_FOR_SESSION |
static byte |
FIRST_BYTE_MASK_4_BYTE_LENGTH
是否是用4字节来表示消息体的长度
|
static byte |
FIRST_BYTE_MASK_COMPRESS
压缩标识位mask,1为压缩,否则不压缩
|
static byte |
FIRST_BYTE_MASK_ENCRYPT
加密标识位mask,1为加密,否则不加密
|
static byte |
FIRST_BYTE_MASK_HAS_SYNSEQ
是否有同步序列号标识位mask,如果有同步序列号,则消息头会带有同步序列号,否则不带
|
static byte |
FIRST_BYTE_MASK_VERSION
版本号mask
|
static byte |
HANDSHAKE_BYTE
握手字节
|
static byte |
HEARTBEAT_BYTE
心跳字节
|
static String |
HTTP |
static int |
LEAST_HEADER_LENGHT
消息头最少为多少个字节
|
static int |
MAX_LENGTH_OF_BODY
消息体最多为多少
|
static String |
TCP |
static byte |
VERSION
协议版本号
|
static String |
WEBSOCKET |
static final byte HEARTBEAT_BYTE
static final byte HANDSHAKE_BYTE
static final byte VERSION
static final String WEBSOCKET
static final String HTTP
static final String TCP
static final String COOKIE_NAME_FOR_SESSION
static final int MAX_LENGTH_OF_BODY
static final int LEAST_HEADER_LENGHT
static final byte FIRST_BYTE_MASK_ENCRYPT
static final byte FIRST_BYTE_MASK_COMPRESS
static final byte FIRST_BYTE_MASK_HAS_SYNSEQ
static final byte FIRST_BYTE_MASK_4_BYTE_LENGTH
static final byte FIRST_BYTE_MASK_VERSION
Copyright © 2018. All rights reserved.