parent
5c855bb1c9
commit
2e28054c00
|
@ -3,19 +3,14 @@ package main
|
||||||
import (
|
import (
|
||||||
"github.com/jtieri/HabbGo/habbgo/server"
|
"github.com/jtieri/HabbGo/habbgo/server"
|
||||||
"github.com/jtieri/HabbGo/habbgo/utils"
|
"github.com/jtieri/HabbGo/habbgo/utils"
|
||||||
|
"log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
//log.Println(encoding.DecodeVl64([]byte{'@','A'}))
|
//log.Println(string(encoding.EncodeB64(6, 3)))
|
||||||
//buffer := bytes.Buffer{}
|
log.Println("Booting up HabbGo... ")
|
||||||
//packet := packets.IncomingPacket{"@@", 1, buffer}
|
|
||||||
//packet.Payload.Write([]byte{'h','e','l','l','o'})
|
|
||||||
//log.Println(string(packet.Bytes()))
|
|
||||||
//log.Println(packet.Payload.String())
|
|
||||||
|
|
||||||
|
|
||||||
config := utils.LoadConfig()
|
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()
|
gameServer.Start()
|
||||||
defer gameServer.Stop()
|
defer gameServer.Stop()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue