golang network library

joe 882a080e38 update mod name 3 éve
cpn 882a080e38 update mod name 3 éve
sample 882a080e38 update mod name 3 éve
.gitignore c1c0bd6a33 fix: default hubConfig 4 éve
README.cn.md 6f5de94dce add Listen() function 4 éve
errs.go c8a5f019bb format code 4 éve
go.mod 882a080e38 update mod name 3 éve
go.sum 6f5de94dce add Listen() function 4 éve
iconn.go c8a5f019bb format code 4 éve
ihub.go cd79c7aa2d fix: support client-side reconn dynamically 4 éve
iprotocol.go c8a5f019bb format code 4 éve
isession.go cd79c7aa2d fix: support client-side reconn dynamically 4 éve
listener_others.go 6f5de94dce add Listen() function 4 éve
listener_windows.go 6f5de94dce add Listen() function 4 éve
ver.go c8a5f019bb format code 4 éve

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