(conn ziface.IConnection)
| 39 | } |
| 40 | |
| 41 | func 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 | |
| 50 | func onClient3Start(conn ziface.IConnection) { |
| 51 | zlog.Infof("client3 connection start, %s->%s\n", conn.LocalAddrString(), conn.RemoteAddrString()) |
nothing calls this directly
no test coverage detected