MCPcopy Index your code
hub / github.com/aceld/zinx / main

Function main

examples/zinx_RequestPollMode/pool_mode_server/PoolModeServer.go:59–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func main() {
60
61 // 开启 Request 对象池模式
62 server := znet.NewUserConfServer(&zconf.Config{RouterSlicesMode: true, TCPPort: 8999, Host: "127.0.0.1", RequestPoolMode: true})
63 server.AddRouterSlices(1, Poll1)
64 server.AddRouterSlices(2, Poll4)
65 server.Serve()
66}

Callers

nothing calls this directly

Calls 3

NewUserConfServerFunction · 0.92
AddRouterSlicesMethod · 0.65
ServeMethod · 0.65

Tested by

no test coverage detected