Simple TCP Server with goRecycleBuffer
Very Simple TCP Server with DiyLecko/goRecycleBuffer
git clone https://github.com/DiyLecko/lecko-tcp
and cd lecko-tcp & go build main.go
and run.
Arbiter will receive Packets and handle at handleRequest()
in arbiter/arbiter.go
file.
I created DiyLecko/goRecycleBuffer for better using Buffer. So maybe this is a kind of example for goRecycleBuffer. goRecycleBuffer recycle buffer for high performance and effective memory usage in your program.
If you want to make simple TCP Server, then use this project!
clone -> add your packet handling in handleRequest()
-> run -> done!
Thanks.
- Add Packet Handler with Google Protobuf
- Add Client Example