Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Show bool BaseKey []byte )
View Source
var AddrParser = protocol.NewAddressParser( protocol.AddressFamilyByte(byte(protocol.AddressTypeIPv4), net.AddressFamilyIPv4), protocol.AddressFamilyByte(byte(protocol.AddressTypeDomain), net.AddressFamilyDomain), protocol.AddressFamilyByte(byte(protocol.AddressTypeIPv6), net.AddressFamilyIPv6), protocol.PortThenAddress(), )
Functions ¶
func GetGlobalID ¶
Types ¶
type PacketReader ¶
func NewPacketReader ¶
func NewPacketReader(reader io.Reader) *PacketReader
func (*PacketReader) ReadMultiBuffer ¶
func (r *PacketReader) ReadMultiBuffer() (buf.MultiBuffer, error)
type PacketWriter ¶
type PacketWriter struct { Writer buf.Writer Dest net.Destination GlobalID [8]byte }
func NewPacketWriter ¶
func NewPacketWriter(writer buf.Writer, dest net.Destination, globalID [8]byte) *PacketWriter
func (*PacketWriter) WriteMultiBuffer ¶
func (w *PacketWriter) WriteMultiBuffer(mb buf.MultiBuffer) error
Click to show internal directories.
Click to hide internal directories.