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

Function main

examples/zinx_RequestPollMode/no_pool_mode_server/NoPoolModeServer.go:31–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31func main() {
32
33 // 关闭 Request 对象池模式
34 server := znet.NewUserConfServer(&zconf.Config{RouterSlicesMode: true, TCPPort: 8999, Host: "127.0.0.1", RequestPoolMode: false})
35 server.AddRouterSlices(1, NoPoll1)
36 server.AddRouterSlices(2, NoPoll4)
37 server.Serve()
38}

Callers

nothing calls this directly

Calls 3

NewUserConfServerFunction · 0.92
AddRouterSlicesMethod · 0.65
ServeMethod · 0.65

Tested by

no test coverage detected