mirror of
https://github.com/PretendoNetwork/super-mario-maker.git
synced 2026-08-24 01:34:41 -05:00
updated config
This commit is contained in:
10
main.go
10
main.go
@@ -33,6 +33,8 @@ func main() {
|
||||
nexServer.SetPrudpVersion(1)
|
||||
nexServer.SetNexVersion(4)
|
||||
nexServer.SetKerberosKeySize(32)
|
||||
nexServer.SetFragmentSize(1300)
|
||||
nexServer.SetPingTimeout(20)
|
||||
nexServer.SetAccessKey("9f2b4678")
|
||||
|
||||
nexServer.On("Data", func(packet *nex.PacketV1) {
|
||||
@@ -44,6 +46,14 @@ func main() {
|
||||
fmt.Println("=================")
|
||||
})
|
||||
|
||||
nexServer.On("Kick", func(packet *nex.PacketV1) {
|
||||
fmt.Println("Leaving")
|
||||
})
|
||||
|
||||
nexServer.On("Ping", func(packet *nex.PacketV1) {
|
||||
fmt.Println("Pinged")
|
||||
})
|
||||
|
||||
secureServer = nexproto.NewSecureProtocol(nexServer)
|
||||
dataStoreSmmServer := nexproto.NewDataStoreSMMProtocol(nexServer)
|
||||
messageDeliveryServer := nexproto.NewMessageDeliveryProtocol(nexServer)
|
||||
|
||||
Reference in New Issue
Block a user