Whisper Library
|
generates valid udp packets More...
Static Public Member Functions | |
static UdpPacket | generateNextPacket (unsigned short port) |
generates a udp packet More... | |
static UdpPacket | generatePacketWithLength (unsigned short port, unsigned int length) |
generates a udp packet with specific length More... | |
generates valid udp packets
This class provides a function to create valid udp packets with random content and length.
|
static |
generates a udp packet
'nextPacket' returns a valid udp packet with random content and length. Call the function with the port, the packet is sent to. The length of the packet is random and uniformly distributed between 50 and 150 bytes. It contains uniformly distributed random characters.
|
static |
generates a udp packet with specific length
Generates a UdpPacket with the given length by filling the packet with random characters. If the given length is less than eight, a udp packet without data is returned.
port | the source and destination port |
length | the desired length of the packet |