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.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00d2b3d375a9b63b31d7e03175dc46f01a998e809285defa00f5186a84566ef8 |
|
MD5 | cf4972485f5cbdb449968dd348729525 |
|
BLAKE2b-256 | bca353d9456a0ebd40675429013f0fdb43f4d2d391d713878e8aea8f4ca0935a |