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

Function onClient2Start

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

Source from the content-addressed store, hash-verified

39}
40
41func onClient2Start(conn ziface.IConnection) {
42 zlog.Infof("client2 connection start, %s->%s\n", conn.LocalAddrString(), conn.RemoteAddrString())
43 //send ping
44 err := conn.SendMsg(PingType, []byte("Ping From Client2"))
45 if err != nil {
46 zlog.Error(err)
47 }
48}
49
50func onClient3Start(conn ziface.IConnection) {
51 zlog.Infof("client3 connection start, %s->%s\n", conn.LocalAddrString(), conn.RemoteAddrString())

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