当前位置:网站首页>TCP chat + transfer file server server socket v2.8 - fix 4 known problems
TCP chat + transfer file server server socket v2.8 - fix 4 known problems
2022-06-25 17:03:00 【zmh-program】
TCP Chat + Transfer file server socket v2.8
List of articles
All version records :
v1.0: TCP Chat server socket |PyQt5+socket(TCP Port mapping + Port release )+logging+Thread( Including log ,html)+anaconda pack 32 position exe(3.4 swastika )|python Higher orderv1.1: python TCP Socket server v1.1- New server command function and modification bug(socket+PyQt5)v1.2: python TCP The server v1.2 - Login and registration of new users on the server (json, md5 encryption )v1.3: python TCP The server v1.3 - Server compression test and socket closing processingv1.4: python TCP The server v1.4 - The client connection to the server is abnormal ( Classification of abnormal conditions ) Handlev1.5: PyQt5 Edit drop-down box (comboBox):editable - python TCP The server v1.5 - Add custom parameters to the client connection interface ( Set timeout , The connection address is optional )v1.6: Python TCP The server v1.6 - multiprocessing Multi process and Ctrl-c(SIGINT) sign outv1.7: Python TCP The server v1.7 - PyQt5 server Server comingv1.8: python TCP The server v1.8 - PyQt5 Login interface beautification + Fade in and outv1.9: socketTCP Process documents + Information transmission - TCP Chat file server v1.9 - An epoch-making version update (4.6 swastika )v2.0: TCP Chat file server v2.0 - major bug Repair +PyQt5 File transfer visualizationv2.1: TCP Chat file server v2.1 - Server thread management (threading.enumerate)v2.2: TCP Chat file server v2.2 - Server client socket solution subcontracting / Stick package problem - SocketQueue Inherit and reduce redundancyv2.3: gzip Use - TCP Chat file server v2.3 - File transfer establishes cache system and .gz Decompression of / Compression solves the problem that the running memory is too largev2.4: Network transmission speed measurement - TCP Chat + Transfer file server socket v2.4 - socket Process file transfer speed measurementv2.5: TCP Chat + Transfer file server socket v2.5 - socket The speed measurement specification has been gzip Abandonment ofv2.6: TCP Chat + Transfer file server socket v2.6 - Login registration interface update - loading Interface applicationv2.7: python Database performance improvement - TCP Chat + Transfer file server socket v2.7
- data Library login problem
[!]: data.py Has been refactored on Database.py
def __in__(username) -> bool:
return >> encode << (username) in data
- Server side Database.handler problem
def login_data(self):
while self.isOpen():
try:
response = json.loads(self.recv())
return response["type"], response["username"], response["password"]
except TypeError:
self.quit()
...
@ignore
def forever_receive(self):
while self.isOpen():
result, reason, username = Database.handler(*self.login_data())
self.send(json.dumps({
"result": result, "reason": reason}))
if result:
self.username = username
break
...
- Client login / The registration screen After successful registration, the waiting interface is still running
def handle(self, dictionary: (dict, str)):
>> self.loading_dialog.close() <<
if isinstance(dictionary, dict):
result = dictionary.get("result", False)
reason = dictionary.get("reason", False)
if not result:
self.err_handle(reason)
else:
self.successful = True
self.close()
self.Enable(True)
- File transfer time detection problem
D:\Anaconda3\python.exe "C:\Program Files\JetBrains\PyCharm 2022.1\plugins\python\helpers\pydev\pydevd.py" --multiprocess --qt-support=auto --client 127.0.0.1 --port 64076 --file user.pyw
Connected to pydev The debugger ( Internal version number 221.5080.212)2022-06-24 19:12:45,876 - selector_events.py[line:64] - DEBUG: Using selector: SelectSelector
Traceback (most recent call last):
File "C:/Users/zhnwe/Desktop/ServerProject/user/user.pyw", line 1069, in timers
timeit = self.get_time()
File "C:/Users/zhnwe/Desktop/ServerProject/user/user.pyw", line 1095, in get_time
return getattr(self, "end_time", time.time()) - self.start_time
TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'
Delete >> self.end_time = None <<
- Warning repair
- Reduce redundant
gitcode
边栏推荐
- WPF development essays Collection - ECG curve drawing
- SMART PLC如何构造ALT指令
- 【精通高并发】深入理解C语言基础与汇编下的C语言
- 剑指 Offer II 012. 左右两边子数组的和相等
- ncnn源码学习全集
- Kalman Filter 遇到 Deep Learning : 卡尔曼滤波和深度学习有关的论文
- 2022-06-17 advanced network engineering (x) is-is-general header, establishment of adjacency relationship, IIH message, DIS and pseudo node
- Day_ thirteen
- Generate post order traversal according to pre order traversal and mid order traversal
- Wireshark network card cannot be found or does not display the problem
猜你喜欢

tensorflow 旧版本

ddia数据密集型应用系统设计 整理

论文笔记:LBCF: A Large-Scale Budget-Constrained Causal Forest Algorithm

A complete collection of APP testing tools. It's enough to collect this one

剑指 Offer 50. 第一个只出现一次的字符

try with resource

【蓝桥杯集训100题】scratch指令移动 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第14题

Structure de la mémoire JVM

批量--07---断点重提

从业一年,我是如何涨薪13K+?
随机推荐
[untitled]
SnakeYAML配置文件解析器
3. conditional probability and independence
TCP聊天+传输文件服务器服务器套接字v2.8 - 修复已知程序4个问题
社交电商如何运营推广?
[proficient in high concurrency] deeply understand the basics of assembly language
使用hbuilder X创建uniapp项目
剑指 Offer II 010. 和为 k 的子数组 前缀和差
SnakeYAML配置文件解析器
PLSQL 存储函数SQL编程
【精通高并发】深入理解C语言基础与汇编下的C语言
Day_ fourteen
How did I raise my salary to 20k in three years?
这些老系统代码,是猪写的么?
How to talk about salary correctly in software testing interview
【微服务|Sentinel】流控规则概述|针对来源|流控模式详解<直接 关联 链路>
mysql使用过程中遇到的问题
软考中级和高级选哪个比较好?
论文笔记:LBCF: A Large-Scale Budget-Constrained Causal Forest Algorithm
Ad domain login authentication