增加了通信协议解析的功能
This commit is contained in:
@@ -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)
|
||||
|
||||
# 关闭套接字
|
||||
|
||||
Reference in New Issue
Block a user