Reference

如何设计与实现一个自定义的二进制协议

手把手教你实现自定义的应用层协议

Designing and Implementing an Application Layer Network Protocol Using UNIX Sockets and TCP