Lines Matching defs:socket
25 import binascii, errno, random, re, socket, subprocess, sys, time, calendar
143 timeout - socket timeout (default: None)
145 the global default socket timeout is used
200 # Open socket to server.
292 # Default value of IMAP4.host is '', but socket.getaddrinfo()
293 # (which is used by socket.create_connection()) expects None
296 raise ValueError('Non-blocking socket (timeout=0) is not supported')
301 return socket.create_connection(address, timeout)
302 return socket.create_connection(address)
339 self.sock.shutdown(socket.SHUT_RDWR)
351 def socket(self):
352 """Return socket instance used to connect to IMAP4 server.
354 socket = <instance>.socket()
1008 raise self.abort('socket error: %s' % val)
1033 raise self.abort('socket error: %s' % val)
1163 # If we've seen a BYE at this point, the socket will be
1185 raise self.abort('socket error: EOF')
1189 raise self.abort('socket error: unterminated line: %r' % line)
1298 timeout - socket timeout (default: None) If timeout is not given or is None,
1299 the global default socket timeout is used