Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Version is version of the Raknet library Version = "v1.0.0" // ProtocolVersion is supported version of raknet protocol ProtocolVersion = 8 )
View Source
const (
Magic = "00ffff00fefefefefdfdfdfd12345678"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoSetBufferError ¶
type NoSetBufferError struct {
}
func (NoSetBufferError) Error ¶
func (e NoSetBufferError) Error() string
type SystemAddress ¶
SystemAddress is internal address for Raknet
func NewSystemAddress ¶
func NewSystemAddress(addr string, port uint16) *SystemAddress
NewSystemAddress returns a new SystemAddress from string
func NewSystemAddressBytes ¶
func NewSystemAddressBytes(addr []byte, port uint16) *SystemAddress
NewSystemAddress returns a new SystemAddress from bytes
func (*SystemAddress) Equal ¶
func (addr *SystemAddress) Equal(sub *SystemAddress) bool
Equal returns whether sub is the same address
func (*SystemAddress) IsLoopback ¶
func (addr *SystemAddress) IsLoopback() bool
IsLoopback returns whether this is loopback address
func (*SystemAddress) SetLoopback ¶
func (addr *SystemAddress) SetLoopback()
SetLoopback sets loopback address
func (*SystemAddress) String ¶
func (addr *SystemAddress) String() string
String returns as string Format: 192.168.11.1:8080, [fc00::]:8080
func (*SystemAddress) Version ¶
func (addr *SystemAddress) Version() int
Version returns the ip address version (4 or 6)
Click to show internal directories.
Click to hide internal directories.