Lines Matching defs:socket
93 import socket
139 def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
500 def open(self, fullurl, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
1329 # It will try to read all remaining data from the socket,
1358 # HTTPConnection assumes the socket should be left open. Manually
1359 # mark the socket to be closed when this response object goes away.
1491 socket.gethostbyname_ex('localhost')[2] +
1492 socket.gethostbyname_ex(socket.gethostname())[2])
1493 except socket.gaierror:
1494 FileHandler.names = (socket.gethostbyname('localhost'),)
1527 return socket.gethostbyname(host)
1528 except socket.gaierror:
1555 host = socket.gethostbyname(host)
1793 raise OSError('socket error', msg) from msg
1934 # This helps in closing the socket and avoiding ResourceWarning
2030 and socket.gethostbyname(host) in ((localhost(),) + thishost())):
2053 host = socket.gethostbyname(host)
2365 _localhost = socket.gethostbyname('localhost')
2374 _thishost = tuple(socket.gethostbyname_ex(socket.gethostname())[2])
2375 except socket.gaierror:
2376 _thishost = tuple(socket.gethostbyname_ex('localhost')[2])
2605 hostIP = socket.gethostbyname(hostonly)
2747 addr = socket.gethostbyname(rawHost)
2753 fqdn = socket.getfqdn(rawHost)