golang network library

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

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