golang network library

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

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