增加了通信协议解析的功能

This commit is contained in:
zjk
2024-11-19 09:58:31 +08:00
parent 590662d7a5
commit 4693ce2619
15 changed files with 924 additions and 169 deletions
+2 -2
View File
@@ -33,11 +33,11 @@ for i in range(num_messages):
sock.sendto(message, (target_ip, target_port))
# 打印发送的信息和目标地址
print(f"Sent message to {target_ip}:{target_port}: {message}")
print(f"Sent message to {target_ip}:{target_port}")
# 等待一段时间
time.sleep(interval)
sock.sendto(valid_msg2, (target_ip, target_port))
# sock.sendto(valid_msg2, (target_ip, target_port))
time.sleep(interval)
# 关闭套接字