MCPcopy
hub / github.com/aceld/zinx / NewServer

Function NewServer

znet/server.go:182–184  ·  view source on GitHub ↗

NewServer creates a server handle (创建一个服务器句柄)

(opts ...Option)

Source from the content-addressed store, hash-verified

180// NewServer creates a server handle
181// (创建一个服务器句柄)
182func NewServer(opts ...Option) ziface.IServer {
183 return newServerWithConfig(zconf.GlobalObject, "tcp", opts...)
184}
185
186// NewUserConfServer creates a server handle using user-defined configuration
187// (创建一个服务器句柄)

Callers 15

mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92

Calls 1

newServerWithConfigFunction · 0.85

Tested by 3

TestServerFunction · 0.68
TestServerDeadLockFunction · 0.68