golang network library

joe e6e4ca97ab change internal to cpn(components) 4 years ago
cpn e6e4ca97ab change internal to cpn(components) 4 years ago
.gitignore e6e4ca97ab change internal to cpn(components) 4 years ago
README.cn.md 6f5de94dce add Listen() function 4 years ago
errs.go c8a5f019bb format code 4 years ago
go.mod 6f5de94dce add Listen() function 4 years ago
go.sum 6f5de94dce add Listen() function 4 years ago
iconn.go c8a5f019bb format code 4 years ago
ihub.go c8a5f019bb format code 4 years ago
iprotocol.go c8a5f019bb format code 4 years ago
isession.go c8a5f019bb format code 4 years ago
listener_others.go 6f5de94dce add Listen() function 4 years ago
listener_windows.go 6f5de94dce add Listen() function 4 years ago
ver.go c8a5f019bb format code 4 years ago

README.cn.md

nnet

简单封装的网络库, 支持 TCP, Websocket

不支持常见的 Encoder/Decoder, Middleware 等组件, 降低复杂度.

How to use

see sample/

TODO

  • 支持内置默认的 listener
  • 根据实际使用添加更方便使用的高层函数
  • 支持流量等状态统计
  • session.Do() 消费者 goroutine 支持 1对多

NO PLAN

  • 黑白名单
  • TLS

以上应使用前置代理

License

The 3-Clause BSD License