Customize transmission protocol for Instant Messaging system
Request Header command, version, clientType, messageType, appId, imeiLength, bodyLength
imeiBody imei content
Request Body Actual data content
Each length of value in Request header is 4 bits (Assume each value is Integer), so the total size is 28 bits
command: Request type like GET, POST, PUT, DELETE, etc.
version: Transmission protocol version
clientType: Client type like IOS, Android, PC(Windows, Mac), Web, etc.
messageType: JSON, Protobuf.
imeiLength: The length of Imei number per client
appId: App id per each terminal as our System support multiple terminal access
bodyLength: The length of body