Event based package for tcp server/client on top of python sockets package
Project description
tinytcp
Event based package for tcp server/client on top of python sockets package
TcpClient
TcpClient one class for two cases: from the client side, it would be used to initiate the connection, and from the server side, it would be used on the accepted socket. For client, TcpClient constructor would take ip and port of the server, and for the server, TcpClient constructor would have the accepted socket. TcpClient have a method to start receiving asynchronously, once there is a message it triggers the message received handler function.
TcpServer
It has a method to start listening to incoming connections asynchronously, once there is a new connection, it initiates a new TcpClient object with the accepted sockets, it links the events, and makes it start receiving messages.
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
File details
Details for the file tinytcp-1.0.0.tar.gz.
File metadata
- Download URL: tinytcp-1.0.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c9825cdc907c3041d440a1a0f3ded5ba7a6c8249158096447991da2c1cc25ae
|
|
| MD5 |
3ea344fe1c10d11938bee42ffc247a69
|
|
| BLAKE2b-256 |
6fe541bec1d66a9fc97f69c6598685bd5a05b68402ed1f01beb6284d68b48404
|