mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-09-03 00:18:28 +00:00
test[json]: json tcp server
This commit is contained in:
@@ -25,8 +25,8 @@ import java.util.List;
|
||||
import static com.zfoo.net.packet.PacketService.PACKET_HEAD_LENGTH;
|
||||
|
||||
/**
|
||||
* header(4byte) + protocolId(2byte) + packet
|
||||
* header = body(bytes.length) + protocolId.length(2byte)
|
||||
* header(4byte) + json string
|
||||
* header = json body(json.length)
|
||||
*
|
||||
* @author godotg
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user