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

Function DoClientConnectedBegin

examples/zinx_metrics/client/c1/client.go:28–36  ·  view source on GitHub ↗
(conn ziface.IConnection)

Source from the content-addressed store, hash-verified

26}
27
28func DoClientConnectedBegin(conn ziface.IConnection) {
29 zlog.Debug("DoConnectionBegin is Called ... ")
30
31 //设置两个连接属性,在连接创建之后
32 conn.SetProperty("Name", "刘丹冰Aceld")
33 conn.SetProperty("Home", "https://yuque.com/aceld")
34
35 go business(conn)
36}
37
38func DoClientConnectedLost(conn ziface.IConnection) {
39 if name, err := conn.GetProperty("Name"); err == nil {

Callers

nothing calls this directly

Calls 3

DebugFunction · 0.92
businessFunction · 0.70
SetPropertyMethod · 0.65

Tested by

no test coverage detected