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

Function onClient3Start

examples/zinx_dynamic_bind/client/client.go:50–57  ·  view source on GitHub ↗
(conn ziface.IConnection)

Source from the content-addressed store, hash-verified

48}
49
50func onClient3Start(conn ziface.IConnection) {
51 zlog.Infof("client3 connection start, %s->%s\n", conn.LocalAddrString(), conn.RemoteAddrString())
52 //send ping
53 err := conn.SendMsg(PingType, []byte("Ping From Client3"))
54 if err != nil {
55 zlog.Error(err)
56 }
57}
58
59func main() {
60 //Create a client client

Callers

nothing calls this directly

Calls 5

InfofFunction · 0.92
ErrorFunction · 0.92
LocalAddrStringMethod · 0.65
RemoteAddrStringMethod · 0.65
SendMsgMethod · 0.65

Tested by

no test coverage detected