func mainloop() error { name := fmt.Sprintf("zako%d", rand.Intn(1000)) cli, err := csa.NewClient(name, name, "localhost:4081") if err != nil { return err } cli.SetCallback(new(MyClient)) return cli.Run() }
func mainloop() error { name := fmt.Sprintf("hoge%d", rand.Intn(1000)) //cli, err := csa.NewClient(name,name,"10.211.55.2:4081") cli, err := csa.NewClient(name, name, "192.168.11.4:4081") if err != nil { return err } mycli, err := NewMyClient() if err != nil { return err } cli.SetCallback(mycli) return cli.Run() }