Documentation
¶
Index ¶
- Constants
- Variables
- func CalculateBroadcastIp(ip net.IP, mask net.IPMask) net.IP
- func CertificatePair(executablePath string) (ok bool, parentDir string, cert string)
- func CertificatePairFolder(executablePath string) string
- func ChdirToExe()
- func GetExeFileName(bin bool, executable string) string
- func HostToIps(host string) []net.IP
- type AnnounceMessage
- type AnnounceMessageData000
- type AnnounceMessageData001
Constants ¶
View Source
const ( AnnounceVersion0 = iota AnnounceVersion1 )
View Source
const ( ErrSuccess = iota ErrGeneral ErrSignal ErrPidLock // ErrLast is only used as a marker to where to start, not a real error ErrLast )
View Source
const ( GameAoE1 = "age1" GameAoE2 = "age2" GameAoE3 = "age3" // GameAoE4 Unsupported GameAoE4 = "age4" // GameAoM Unsupported GameAoM = "athens" )
View Source
const AnnounceHeader = Name
View Source
const AnnounceIdLength = 16
View Source
const AnnouncePort = 31978
View Source
const AnnounceVersionLatest = AnnounceVersion1
View Source
const AnnounceVersionLength = 1
View Source
const Cert = "cert.pem"
View Source
const CertSubjectOrganization = "github.com/luskaner/" + Name
View Source
const Domain = "aoe-api.worldsedgelink.com"
View Source
const Key = "key.pem"
View Source
const LauncherAgent = "agent"
View Source
const LauncherConfig = "config"
View Source
const LauncherConfigAdmin = "config-admin"
View Source
const LauncherConfigAdminAgent = "config-admin-agent"
View Source
const Name = "ageLANServer"
View Source
const Server = "server"
View Source
const ServerGenCert = "genCert"
Variables ¶
View Source
var AllGames = SupportedGames.Union(mapset.NewThreadUnsafeSet[string](GameAoE4, GameAoM))
View Source
var SupportedGames = mapset.NewThreadUnsafeSet[string](GameAoE1, GameAoE2, GameAoE3)
Functions ¶
func CertificatePair ¶
func CertificatePairFolder ¶
func ChdirToExe ¶
func ChdirToExe()
func GetExeFileName ¶
Types ¶
type AnnounceMessage ¶
type AnnounceMessageData000 ¶
type AnnounceMessageData000 struct { }
AnnounceMessageData000 Empty interface to be used as a placeholder for the message type
type AnnounceMessageData001 ¶
type AnnounceMessageData001 struct {
GameIds []string
}
AnnounceMessageData001 Data structure for the announce version 1
Source Files
¶
Click to show internal directories.
Click to hide internal directories.