P2P socket built on aiortc.
Project description
Nameless
Installation
Install necessary packages using pip.
Usage
Firstly, run signaling.py
on a server with public IP.
Secondly, run TURN server on a server with public IP.
Thirdly, run peer.py
on any machine. The configuration has to be set beforehand in config.toml
as follows:
[worker]
id = "worker-id"
[signaling]
ip = "signaling-server-ip"
port = 8765
[[turn]]
ip = "turn-server-ip"
port = 3478
username = "turn-server-username"
credential = "turn-server-credential"
[stun]
ip = "stun-server-ip"
port = 19302
Fill the blank with your own configuration.
Then, conn.py
is used to check connectivity. Use connect <worker-id>
to connect to a peer in the console. After the connection is established, you can send messages to the peer using send <message>
.
rtt.py
is used to measure the round trip time. Use send
to measure the round trip time to a peer after establishing the connnection by connect <worker-id>
.
bw.py
is used to measure the bandwidth. It's used the same way as rtt.py
.
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 Distribution
Built Distribution
Hashes for fleece_network-0.2.0rc0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c904c86d95341ae544adab39718c410beba1126d4fde9caeb80598a50075ae64 |
|
MD5 | dcae039885c5681b206a520b9632e379 |
|
BLAKE2b-256 | 401e32331dcb6caf2c664944921f37be5a045fc4ff9ae506698b2c90157f015a |