Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AFPacket ¶
type AFPacket struct {
// contains filtered or unexported fields
}
AFPacket is a writer to an AFPacket packet connection.
type DevNull ¶
type DevNull struct{}
DevNull represents a throw-away writer.
type Writer ¶
type Writer interface { // Run writes packets from the given channel to the underlying interface // until the channel is closed. Run(ch <-chan []packet.Packet) // Write writes a batch of messages to the underlying interface. Write(m []packet.Packet) // Close closes all open resources. Close() }
Writer represents a packet writer.
func NewAFPacket ¶
NewAFPacket creates a Writer for the given source address and buffer size. The buffer size is used for determining the batch size of writes.
Click to show internal directories.
Click to hide internal directories.