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

Function onClient1Start

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

Source from the content-addressed store, hash-verified

30}
31
32func onClient1Start(conn ziface.IConnection) {
33 zlog.Infof("client1 connection start, %s->%s\n", conn.LocalAddrString(), conn.RemoteAddrString())
34 //send ping
35 err := conn.SendMsg(PingType, []byte("Ping From Client1"))
36 if err != nil {
37 zlog.Error(err)
38 }
39}
40
41func onClient2Start(conn ziface.IConnection) {
42 zlog.Infof("client2 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