golang network library

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

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