Skip to main content

Packet Generator

Project description

YS Packet Generator

This is a packet generator Python package.

Installation

pip install ys-packet-generator

Usage

There should be two sides:

  • Client side - which generates the packets
  • Server side - which receive the packets

On the client side

Send UDP packets - unlimited loop

Each packet's data is an increasing index that repeats every 32bit

@param: ip (str) - destination IP address
        port (int) - destination port
        bandwidth (int) - the bandwidth to allocate
        packet_size (int) - size of each packet
        debug (bool) - use prints or not
@returns: None
from ys-packet-generator import generator as pg
...
pg.send(...)

On the server side

Receive UDP packets from the generator - unlimited loop Each packet is an increasing index that repeats every 32bit

@param: ip (str) - local IP address
        port (int) - local port
        buffer_size (int) - buffer size to reveive packets
        full_debug (bool) - print all debug prints
        debug (bool) - print only missed packet's index
@returns: None
from ys-packet-generator import server 
...
server.receive(...)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ys_packet_generator-0.0.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file ys_packet_generator-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ys_packet_generator-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5f9481471e0d802e3bd6e1f9b58b9ba9100e5ace8a528e1b17846d4003315c2c
MD5 c3c39541cc6c30ae2e924ffb0f93be55
BLAKE2b-256 248e6d71531d44ee68f2d36926be566005f0adef97f17e6fcc80dade998608b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page