(conn ziface.IConnection)
| 48 | } |
| 49 | |
| 50 | func 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 | |
| 59 | func main() { |
| 60 | //Create a client client |
nothing calls this directly
no test coverage detected