DiyProtocol
DiyProtocol copied to clipboard
自定义协议/解决tcp粘包问题(golang版本)
DiyProtocol
演示
go get github.com/weiwenwang/DiyProtocol
cd $GOPATH/github.com/weiwenwang/DiyProtocol/example/server/
go run server.go
cd $GOPATH/github.com/weiwenwang/DiyProtocol/example/client/
go run client.go
文章
https://weiwenwang.github.io/2018/11/15/tcp%E7%B2%98%E5%8C%85%E9%97%AE%E9%A2%98-golang/