DiyLecko / lecko-tcp

Simple TCP Server with goRecycleBuffer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lecko-tcp

Simple TCP Server with goRecycleBuffer

What is this?

Very Simple TCP Server with DiyLecko/goRecycleBuffer

Installation

git clone https://github.com/DiyLecko/lecko-tcp and cd lecko-tcp & go build main.go and run.

How to use?

Arbiter will receive Packets and handle at handleRequest() in arbiter/arbiter.go file.

Why create this?

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.

TODO

  1. Add Packet Handler with Google Protobuf
  2. Add Client Example

About

Simple TCP Server with goRecycleBuffer


Languages

Language:Go 100.0%