Lines Matching defs:connect
235 connect. If specified, `port` specifies the port to which to connect.
237 connect method is called, and if it returns anything other than a
255 (code, msg) = self.connect(host, port)
306 # This makes it simpler for SMTP_SSL to use the SMTP connect code
311 self._print_debug('connect: to', (host, port), self.source_address)
315 def connect(self, host='localhost', port=0, source_address=None):
340 sys.audit("smtplib.connect", self, host, port)
345 self._print_debug('connect:', repr(msg))
365 raise SMTPServerDisconnected('please run connect() first')
1005 # A new EHLO is required after reconnecting with connect()
1055 self._print_debug('connect:', (host, port))
1073 LMTP, so our connect() method must support that as well as a regular
1090 def connect(self, host='localhost', port=0, source_address=None):
1093 return super().connect(host, port, source_address=source_address)
1104 self.sock.connect(host)
1107 self._print_debug('connect fail:', host)
1114 self._print_debug('connect:', msg)