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

Function Server

znotify/notify_test.go:27–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func Server() {
28 s := znet.NewUserConfServer(&zconf.Config{
29 Host: "127.0.0.1",
30 TCPPort: 9991,
31 Name: "NtTest",
32 Version: "1",
33 MaxConn: 10000,
34 MaxPacketSize: 4096,
35 WorkerPoolSize: 10,
36 MaxWorkerTaskLen: 10,
37 MaxMsgChanLen: 10,
38 })
39
40 s.AddRouter(1, &router{})
41 s.Serve()
42}
43
44func Clinet() {
45 //conf.ConfigInit()

Callers 1

initFunction · 0.70

Calls 3

NewUserConfServerFunction · 0.92
AddRouterMethod · 0.65
ServeMethod · 0.65

Tested by

no test coverage detected