(conn ziface.IConnection)
| 30 | } |
| 31 | |
| 32 | func 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 | |
| 41 | func onClient2Start(conn ziface.IConnection) { |
| 42 | zlog.Infof("client2 connection start, %s->%s\n", conn.LocalAddrString(), conn.RemoteAddrString()) |
nothing calls this directly
no test coverage detected