API 参考取自源码中的 Go 文档注释,以英文书写。
package lan
import "github.com/nsgo-dev/game/pkg/online/lan"概述
Package lan is experimental: its API and documented formats may change in a minor release. See the API stability policy. describes multiplayer games advertised on the local network, with the validation and deterministic TXT metadata a discovery protocol such as mDNS carries.
索引
类型
type Game struct {
Name, Type, Address, Version string
Port int
Players, Capacity int
Password bool
Info map[string]string
}Game describes a discovered LAN game advertisement.