我知道在应该使用conn变量的情况下使用s变量的服务器部分出现了错误,但是我已经在这里坐了两个小时了,看不到错误。错误:[WinError10057] A request to send or receive data was disallowed because the socket is not connected
所以我一直在用python和pygame开发一个太空射击时间游戏,并希望使用套接字和网络在游戏中添加多人功能。这个游戏还没有完全结束,因为我对python (甚至是套接字的新手)还很陌生,所以我的代码并不是很优雅。每当我运行服务器时,就会弹出这个错误:
[WinError10057] A request to send or receive data was disallowed because
环境:
import sslsocket = socket.socketkey', certfile='cert', server_side=True)socket.error: [Errno 10057not connected and (when sending on a datagram socket using a
我正在研究rodando python3.7库,运行这段基本代码: Estou estudando a biblioteca GPS3 do python3.7,rodando esse código[WinError10057] Uma solicitação de envio ou recebimento de dados não foi permitida porque o soquetepython3.4上运行这段代码,得到了完全相同的输出
Eu játent
我有一个相当复杂的TCP/IP服务器,可以连接到多个客户端。我遇到了一个问题,我的客户端没有更新套接字正在关闭。我认为我需要同时调用socket.shutdown()和socket.close()才能向所有客户端发送服务器关闭建议。OSError: [WinError10057] A request to send or receive data wa