python2.7/dist-packages/requests/packages/urllib3/util/connection.py", line 77, in create_connection sock.bind(source_address) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) TypeError: getsockaddrarg: AF_INET address must be tuple, not str...
doesn't works even after changingAF_UNIXtoAF_INETinunixconn.py Error: File "c:\Python38\lib\site-packages\docker\transport\unixconn.py", line 33, in connect sock.connect(self.unix_socket) TypeError: connect(): AF_INET address must be tuple, not str ...
第1步是创建socket对象。调用socket构造函数。 socket=socket.socket(familly,type) family的值可以是A...
# 需要導入模塊: import socket [as 別名]# 或者: from socket importAF_INET[as 別名]defCreate(asyncSocketsPool, srvAddr, srvBacklog=256, bufSlots=None):try: srvSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)except:raiseXAsyncTCPServerException('Create : Cannot open socket (no eno...
def __init__(self, socketpath: str, protoclass: type): self.socketpath = socketpath if sys.platform in ['win32', 'cygwin']: family = socket.AF_INET address = ('127.0.0.1', 27015) else: family = socket.AF_UNIX address = self.socketpath self.socket = SafeStreamSocket(address, fam...
# 需要导入模块: from gevent import socket [as 别名]# 或者: from gevent.socket importAF_INET6[as 别名]def_getnameinfo(self, sockaddr, flags):ifnotisinstance(flags, int):raiseTypeError('an integer is required')ifnotisinstance(sockaddr, tuple):raiseTypeError('getnameinfo() argument 1 must be a...
Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} python / cpython Public Notifications You must be signed in to change notification settings Fork 30.7k ...
Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} cg123 / vllm Public forked from vllm-project/vllm Notifications You must be signed in to change notification settings Fork 0 Star ...
family = socket.AF_INET self._sock = socket.socket(family, socket.SOCK_STREAM) self._sock.connect(addr) 開發者ID:openatx,項目名稱:facebook-wda,代碼行數:20,代碼來源:usbmux.py 示例2: __init__ ▲點讚 6▼ # 需要導入模塊: import socket [as 別名]# 或者: from socket importAF_UNIX[as...
family, socktype, proto, name, address = result[0]iffamily == AF_INET:iflen(sockaddr) !=2:raiseerror("IPv4 sockaddr must be 2 tuple")eliffamily == AF_INET6: address = address[:2] + sockaddr[2:] self.ares.getnameinfo(waiter, address, flags) ...