func main() {
	args := os.Args
	if len(args) != 3 {
		fmt.Println("Usage: authServerRunner [server UDP ip:port] [secret]")
		os.Exit(-1)
	}
	udpIpPort := args[1]
	secret := common.ParseIntFromStr(args[2])
	authServer.RunAuthServer(udpIpPort, secret)
}
Exemple #2
0
func main() {
	args := os.Args //os.Args[0] is program name
	if len(args) != 4 {
		fmt.Println("Usage: clientRunner [local UDP ip:port] [aserver UDP ip:port] [secret]")
		os.Exit(-1)
	}
	clientIpPort := args[1]
	aserverIpPort := args[2]
	secret := common.ParseIntFromStr(args[3])

	client.RunClient(clientIpPort, aserverIpPort, secret)
}