This commit is contained in:
Yunjay Liu
2024-10-25 22:03:45 +08:00
parent 7d70ac8157
commit 809b1b1cd3
35 changed files with 2355 additions and 6 deletions

View File

@ -0,0 +1,11 @@
from socket import *
########## Begin ##########
clientSocket = socket(AF_INET, SOCK_DGRAM) # 创建UDP套接字使用IPv4协议
# 设置套接字超时值1秒
clientSocket.settimeout(1)
########## End ##########
print(clientSocket)
print(clientSocket.gettimeout())