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

Function main

examples/zinx_decoder/client/client.go:102–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100}
101
102func main() {
103
104 client := znet.NewClient("127.0.0.1", 8999)
105
106 client.SetOnConnStart(DoClientConnectedBegin)
107
108 client.Start()
109
110 // close
111 c := make(chan os.Signal, 1)
112 signal.Notify(c, os.Interrupt, os.Kill)
113 sig := <-c
114 fmt.Println("===exit===", sig)
115
116}

Callers

nothing calls this directly

Calls 3

SetOnConnStartMethod · 0.95
StartMethod · 0.95
NewClientFunction · 0.92

Tested by

no test coverage detected