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

Function main

examples/zinx_dynamic_bind/server/server.go:49–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func main() {
50 s := znet.NewServer()
51
52 s.SetOnConnStart(OnConnectionAdd)
53 s.SetOnConnStop(OnConnectionLost)
54
55 s.AddRouter(1, &blockRouter{})
56
57 s.Serve()
58}

Callers

nothing calls this directly

Calls 5

SetOnConnStartMethod · 0.95
SetOnConnStopMethod · 0.95
AddRouterMethod · 0.95
ServeMethod · 0.95
NewServerFunction · 0.92

Tested by

no test coverage detected