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

Function main

examples/zinx_interceptor/client/client.go:10–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func main() {
11 client := znet.NewClient("127.0.0.1", 8999)
12
13 client.SetOnConnStart(func(connection ziface.IConnection) {
14 _ = connection.SendMsg(1, []byte("hello zinx"))
15 })
16
17 client.Start()
18
19 time.Sleep(time.Second)
20}

Callers

nothing calls this directly

Calls 4

SetOnConnStartMethod · 0.95
StartMethod · 0.95
NewClientFunction · 0.92
SendMsgMethod · 0.65

Tested by

no test coverage detected