Documentation
¶
Index ¶
Constants ¶
View Source
const ( Kilobyte = 1024.0 Megabyte = 1048576.0 Gigabyte = 1073741824.0 )
Variables ¶
View Source
var MTU = 1500
View Source
var Patterns = [][]byte{ []byte{0xff}, []byte{0x00}, }
Functions ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
type Packet ¶
type Packet struct {
PacketHeader
Payload []byte
}
type PacketHeader ¶
type PatternType ¶
type PatternType uint8
const ( AllOnesPattern PatternType = iota AllZerosPattern )
type Sink ¶
type Sink struct {
*Connection
// contains filtered or unexported fields
}
func NewTCPSink ¶
func NewUDPSink ¶
func (*Sink) ReceiveMsg ¶
type Source ¶
type Source struct {
*Connection
// contains filtered or unexported fields
}
func NewTCPSource ¶
func NewUDPSource ¶
Click to show internal directories.
Click to hide internal directories.