一个简单的UDP客户端API
Project description
UDP Client
一个基于PySide6的简单UDP客户端实现。
安装
pip install dist/udp_client_package-0.1.0-py3-none-any.whl
使用示例
from udp_client import UdpClient
创建UDP客户端
udp = UdpClient(local_ip="192.168.0.100", local_port=5000)
连接到目标
udp.connect_to("192.168.0.7", 5300)
发送消息
udp.send_message("Hello, UDP!")
获取本地地址和端口
print(f"本地地址: {udp.local_address}:{udp.local_port}")
关闭连接
udp.close()
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file udp_client_package-0.1.0.tar.gz.
File metadata
- Download URL: udp_client_package-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a17f4035fa94dc3c4124ee0d69925039d49e1c8e36a0ec37564dbeb9e50ef623
|
|
| MD5 |
ee1f34eaec513f1768a964ff99d331f9
|
|
| BLAKE2b-256 |
861bcc715e1501dc57da329f033d6846a9648aa3869488b0704f47bf3d475307
|
File details
Details for the file udp_client_package-0.1.0-py3-none-any.whl.
File metadata
- Download URL: udp_client_package-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3720fab7e335da0e7700fa96b71be9e7d3d11fd71a94d65b65e5fabec8012136
|
|
| MD5 |
5aef5834231ab3985126a1493618f1d1
|
|
| BLAKE2b-256 |
c73ed8a7b1a47227a59462fc6c6eb0ebf5d16ab6d27c11ed417b342c577a1958
|