当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Day_ 16 set
软考中级和高级选哪个比较好?
Apijson simple to use
论文笔记:Generalized Random Forests
Sword finger offer 39 Numbers that occur more than half the time in the array
Wireshark network card cannot be found or does not display the problem
Day_ eleven
2022-06-17 advanced network engineering (IX) is-is- principle, NSAP, net, area division, network type, and overhead value
Differences between et al and etc
AD域登录验证
心情
剑指 Offer II 025. 链表中的两数相加
1-8file sharing in VMWare
[untitled]
Involution? Foam? Change? Ten questions directly hit the core puzzle of "meta universe" – the essence of "ask ta- Wang Lei about the time of the universe"
Ten thousand volumes - list of Dali wa
内卷?泡沫?变革?十个问题直击“元宇宙”核心困惑丨《问Ta-王雷元宇宙时间》精华实录...
3.条件概率与独立性
mac php多版本管理以及安装swoole扩展
JVM memory structure



![[Jianzhi offer II 091. painting the house]](/img/63/dc54c411b1a2f2b1d69b62edafde38.png)




