Documentation ¶
Overview ¶
Package ipx implements common types for IPX header encoding and decoding.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AddrNull = Addr([6]byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}) AddrBroadcast = Addr([6]byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}) )
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct { Checksum uint16 Length uint16 TransControl byte PacketType byte Dest, Src HeaderAddr }
Header represents an IPX header.
func (*Header) IsBroadcast ¶
func (*Header) IsRegistrationPacket ¶
func (*Header) MarshalBinary ¶
MarshalBinary populates a slice of bytes from an IPX header.
func (*Header) UnmarshalBinary ¶
UnmarshalBinary decodes an IPX header from a slice of bytes.
type HeaderAddr ¶
HeaderAddr represents a full IPX address and socket number.
func (*HeaderAddr) MarshalBinary ¶
func (a *HeaderAddr) MarshalBinary() ([]byte, error)
MarshalBinary populates a slice of bytes from an IPX header address.
func (*HeaderAddr) UnmarshalBinary ¶
func (a *HeaderAddr) UnmarshalBinary(data []byte) error
UnmarshalBinary decodes an IPX header address from a slice of bytes.
Click to show internal directories.
Click to hide internal directories.