Extension providing a basic networking protcol implementations as a Python module using mainly C-Extenstions.
Project description
# networkinglib Python Networking Module
## How to use
### TCP Client #### Opening socket and connecting to server `Python from networkinglib import tcp socket = tcp.connect('127.0.0.1', 7777) if not socket: print("Could not connect!") `
#### Sending packet `Python socket.send("Hello Server!") `
#### Receiving Packets `Python print(socket.receive()) `
#### Closing connection `Python socket.close() `
### UDP Client #### Opening socket `Python from networkinglib import udp socket = udp.open() if not socket: print("An unexpected error occured!") `
#### Sending packet `Python socket.send("Hello Server!", "127.0.0.1", 7777) # or socket.send("Hello Server!", "127.0.0.1:7777") `
#### Receiving Packets `Python print(socket.receive()) `
#### Closing connection `Python socket.close() `
Project details
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
File details
Details for the file networkinglib-0.1.tar.gz
.
File metadata
- Download URL: networkinglib-0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4abf6691b52922da928a5de2f69297e03e0605ee6da03829c5c031206014702d |
|
MD5 | d5735c72ae090c15ba37382278440b8b |
|
BLAKE2b-256 | 77ea33feec2a1ef2524df3b1d95e2c23eb3ee6689469ec54ad6852568d6397de |
File details
Details for the file networkinglib-0.1-py3-none-any.whl
.
File metadata
- Download URL: networkinglib-0.1-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0c77929ff1071f182959dd4ea686a37cd10c560bf8e5bc95c485fb166c7b7d8 |
|
MD5 | 53fedac58806e46198ce690c2d875dbd |
|
BLAKE2b-256 | 987e236127daf35ee0db7677a87e0e99825bc04d76206601f355709ca3b0216c |