Lines Matching defs:socket
44 import socket
230 timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
241 socket.getfqdn(). The `source_address` parameter takes a 2-tuple (host,
242 port) for the socket to bind to as its source address before
265 fqdn = socket.getfqdn()
272 addr = socket.gethostbyname(socket.gethostname())
273 except socket.gaierror:
307 # and just alter the socket connection bit.
309 raise ValueError('Non-blocking socket (timeout=0) is not supported')
312 return socket.create_connection((host, port), timeout,
761 however, depends on whether the socket module really checks the
1016 encrypted socket (to use this class you need a socket module that was
1032 timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
1075 meaning as they do in the SMTP class. To specify a Unix socket,
1079 using a Unix socket, LMTP generally don't support or require any
1085 source_address=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
1091 """Connect to the LMTP daemon, on either a Unix or a TCP socket."""
1096 raise ValueError('Non-blocking socket (timeout=0) is not supported')
1100 self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
1101 if self.timeout is not socket._GLOBAL_DEFAULT_TIMEOUT: