Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator handles the logic for mimicking traffic patterns
func NewGenerator ¶
NewGenerator creates a new traffic mimicry generator
func (*Generator) NextPacketDelay ¶
NextPacketDelay calculates the delay before sending the next packet to simulate realistic traffic flow (e.g., reading time, video buffering)
func (*Generator) NextPacketSize ¶
NextPacketSize returns a recommended size for the next packet payload
Click to show internal directories.
Click to hide internal directories.