aernetworking-0.0.4
توضیحات
An easy-to-use network interface module.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aernetworking-0.0.4 |
| نام | aernetworking |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Yusuf Rencber |
| ایمیل نویسنده | yusufrencber546@gmail.com |
| آدرس صفحه اصلی | https://github.com/Aermoss/AerNetworking |
| آدرس اینترنتی | https://pypi.org/project/aernetworking/ |
| مجوز | MIT |
# AerNetworking
An easy-to-use network interface module for python.
## Getting Started
1) Install Python
2) Open cmd/terminal and type:
```
pip install AerNetworking
```
## Examples
# Server
``` python
from aernetworking import * # this will import everything we need from AerNetworking with just one line.
def handler(connection, address): # this function will be run on the new connection
print("New Connection.")
message = "Welcome to my server!"
server.send(connection = connection, data = message) # this will send message to connection
server = Server(ip = get_local_ip(), port = 5656)
server.listen(function = handler) # this will starts the server
```
# Client
``` python
from aernetworking import * # this will import everything we need from AerNetworking with just one line.
client = Client(ip = get_local_ip(), port = 5656)
client.connect() # this is for connecting the server
message = client.recv() # this will recieves the message from connection
print(message)
```
نحوه نصب
نصب پکیج whl aernetworking-0.0.4:
pip install aernetworking-0.0.4.whl
نصب پکیج tar.gz aernetworking-0.0.4:
pip install aernetworking-0.0.4.tar.gz