Example #1
0
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)
}
func startAserver(aserverIpPort string, secret int64) {
	go aserver.RunAuthServer(aserverIpPort, secret)

	//Give time for aserver to set up
	time.Sleep(time.Millisecond * 1500)
}