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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ys_packet_generator-0.0.3-py3-none-any.whl.
File metadata
- Download URL: ys_packet_generator-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f9481471e0d802e3bd6e1f9b58b9ba9100e5ace8a528e1b17846d4003315c2c
|
|
| MD5 |
c3c39541cc6c30ae2e924ffb0f93be55
|
|
| BLAKE2b-256 |
248e6d71531d44ee68f2d36926be566005f0adef97f17e6fcc80dade998608b6
|