update main.go

update
This commit is contained in:
Justin T 2019-12-03 21:13:18 -06:00
parent 5c855bb1c9
commit 2e28054c00
1 changed files with 4 additions and 9 deletions

View File

@ -3,19 +3,14 @@ package main
import (
"github.com/jtieri/HabbGo/habbgo/server"
"github.com/jtieri/HabbGo/habbgo/utils"
"log"
)
func main() {
//log.Println(encoding.DecodeVl64([]byte{'@','A'}))
//buffer := bytes.Buffer{}
//packet := packets.IncomingPacket{"@@", 1, buffer}
//packet.Payload.Write([]byte{'h','e','l','l','o'})
//log.Println(string(packet.Bytes()))
//log.Println(packet.Payload.String())
//log.Println(string(encoding.EncodeB64(6, 3)))
log.Println("Booting up HabbGo... ")
config := utils.LoadConfig()
gameServer := server.New(config.Server.Port, config.Server.Host)
gameServer := server.New(config.Server.Port, config.Server.Host, config.Server.MaxConns)
gameServer.Start()
defer gameServer.Stop()
}