Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is used to read packets.
type ReaderConfig ¶
type ReaderConfig struct { // MaxSize is the maximum size in Bytes per packet. Larger packets will be rejected. MaxSize int }
ReaderConfig is used to configure settings for a Reader.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer is used to write packets.
func (*Writer) Flush ¶
Writes the internal buffer to the io.Writer that was used to construct this Writer.
func (*Writer) WritePacket ¶
WritePacket adds a single packet to the internal buffer, which will be written the next time that Flush is called.
Click to show internal directories.
Click to hide internal directories.