You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package protocol
-
- var MAGIC_CODE_BYTES = [2]byte{0xda, 0xda}
-
- const (
- VERSION = 1
-
- // MaxFrameLength max frame length
- MaxFrameLength = 8 * 1024 * 1024
-
- // V1HeadLength v1 head length
- V1HeadLength = 16
-
- // MSGTypeRequest request message type
- MSGTypeRequest = 0
-
- // MSGTypeResponse response message type
- MSGTypeResponse = 1
-
- // MSGTypeRequestOneway request one way
- MSGTypeRequestOneway = 2
-
- // MSGTypeHeartbeatRequest heart beat request
- MSGTypeHeartbeatRequest = 3
-
- // MSGTypeHeartbeatResponse heart beat response
- MSGTypeHeartbeatResponse = 4
- )
|