package
1.0.8
Repository: https://github.com/laydong/toolpkg.git
Documentation: pkg.go.dev

# README

Server包

这个目录存放跟协议无关的Server管理,包括TCPServer和UnixSockServer

# Functions

NewTCPServer 创建新的TCPServer NewTcpServer(x)表示总共有x个workers,并且全部预先创建好; NewTcpServer(y)表示总共有x个workers,只预先创建y个。.
NewUnixServer 创建新的TCPServer NewUnixServer(x)表示总共有x个workers,并且全部预先创建好; NewUnixServer(y)表示总共有x个workers,只预先创建y个。.

# Structs

TCPServer struct.
UnixServer struct.
Worker 是处理一个请求的Goroutine,worker可以复用.

# Interfaces

Server interface.