# README
NEX Protocols Go
NEX servers with protocol support in Go
Other NEX libraries
nex-go - Barebones NEX/PRUDP server implementation
nex-protocols-common-go - NEX protocols used by many games with premade handlers and a high level API
Install
go get github.com/PretendoNetwork/nex-protocols-go
Usage
nex-protocols-go
provides a higher level API than the NEX Go module to the underlying PRUDP server by providing a set of NEX protocols. This module only provides access to the lower level raw RMC method calls, however, and all method handlers must be defined in full manually. For a higher level API, see the common NEX method handlers module
Example, friends (Wii U) authentication server
For a complete example, see the complete Friends Authentication Server, and other game servers
package main
import (
"fmt"
nex "github.com/PretendoNetwork/nex-go"
nexproto "github.com/PretendoNetwork/nex-protocols-go"
)
var nexServer *nex.Server
func main() {
nexServer = nex.NewServer()
nexServer.SetPrudpVersion(0)
nexServer.SetSignatureVersion(1)
nexServer.SetKerberosKeySize(16)
nexServer.SetAccessKey("ridfebb9")
authenticationServer := nexproto.NewAuthenticationProtocol(nexServer)
// Handle Login RMC method
authenticationServer.Login(login)
// Handle RequestTicket RMC method
authenticationServer.RequestTicket(requestTicket)
nexServer.Listen(":60000")
}
# Packages
Package protocol implements the AAUser protocol.
Package protocol implements the Account Management protocol.
Package protocol implements the DataStore protocol.
Package protocol implements the Debug protocol.
Package protocol implements the Friends QRV protocol.
Package protocol implements the Friends 3DS protocol.
Package protocol implements the Friends WiiU protocol.
Package globals implements variables and functions used by all protocol packages.
Package protocol implements the Health protocol.
Package protocol implements the Match Making protocol.
Package protocol implements the Match Making Ext protocol.
Package protocol implements the Matchmake Extension protocol.
Package protocol implements the Matchmake Referee protocol.
Package protocol implements the Message Deliver protocol.
Package protocol implements the Messaging protocol.
Package protocol implements the Monitoring protocol.
Package protocol implements the NAT Traversal protocol.
Package protocol implements the Nintendo Notfications protocol.
Package protocol implements the Notfications protocol.
Package protocol implements the NAT Traversal protocol.
Package protocol implements the Ranking protocol.
Package protocol implements the Ranking2 protocol.
Package protocol implements the Remote Log Device protocol.
Package protocol implements the Screening protocol.
Package protocol implements the Secure Connection protocol.
Package protocol implements the Service Item protocol.
Package protocol implements the Shop protocol.
Package protocol implements the StorageManager protocol.
Package protocol implements the Subscriber protocol.
Package subscription implements the Subscription NEX protocol.
Package protocol implements the Ticket Granting protocol.
Package protocol implements the Utility protocol.