Known subclasses: twisted.internet.protocol.ProcessProtocol, twisted.internet.protocol.Protocol

This is the abstract superclass of all protocols.

Some methods have helpful default implementations here so that they can easily be shared, but otherwise the direct subclasses of this class are more interesting, Protocol and ProcessProtocol.

Method makeConnection Make a connection to a transport and a server.
Method connectionMade Called when a connection is made.
def connectionMade(self):
overridden in twisted.conch.insults.helper.TerminalBuffer, twisted.conch.insults.insults.ClientProtocol, twisted.conch.insults.insults.ServerProtocol, twisted.conch.scripts.cftp.StdioClient, twisted.conch.ssh.filetransfer.FileTransferClient, twisted.conch.ssh.session._ProtocolWrapper, twisted.conch.ssh.session.SSHSessionProcessProtocol, twisted.conch.ssh.transport.SSHTransportBase, twisted.conch.stdio.TerminalProcessProtocol, twisted.conch.telnet.AuthenticatingTelnetProtocol, twisted.conch.telnet.AuthenticatingTelnetProtocol, twisted.conch.telnet.TelnetBootstrapProtocol, twisted.conch.telnet.TelnetTransport, twisted.conch.test.test_conch.ConchTestForwardingPort, twisted.conch.test.test_conch.ConchTestForwardingProcess, twisted.conch.test.test_conch.Echo, twisted.conch.test.test_session.MockProtocol, twisted.conch.test.test_ssh.CrazySubsystem, twisted.internet.endpoints._WrappingProtocol, twisted.internet.test.connectionmixins.ClosingLaterProtocol, twisted.internet.test.test_endpoints.TestProtocol, twisted.internet.test.test_tcp.AbortServerWritingProtocol, twisted.internet.test.test_tcp.NoReadServer, twisted.internet.test.test_tcp.ProducerAbortingClient, twisted.internet.test.test_tcp.StopStartReadingProtocol, twisted.internet.test.test_tcp.StreamingProducerClient, twisted.internet.test.test_tcp.WritingButNotAbortingClient, twisted.internet.test.test_unix.SendFileDescriptor, twisted.internet.testing.AccumulatingProtocol, twisted.internet.testing.LineSendingProtocol, twisted.internet.utils._EverythingGetter, twisted.mail.imap4.IMAP4Client, twisted.mail.imap4.IMAP4Server, twisted.mail.pop3.AdvancedPOP3Client, twisted.mail.pop3.POP3, twisted.mail.smtp.SMTP, twisted.mail.smtp.SMTPClient, twisted.mail.test.pop3testserver.POP3TestServer, twisted.mail.test.test_pop3client.TLSServerFactory.protocol, twisted.mail.test.test_smtp.FakeSMTPServer, twisted.names.dns.DNSProtocol, twisted.news.nntp.NNTPServer, twisted.news.nntp.UsenetClientProtocol, twisted.news.test.test_nntp.TestNNTPClient, twisted.protocols.dict.DictClient, twisted.protocols.ftp.DTP, twisted.protocols.ftp.FTP, twisted.protocols.ftp.FTPOverflowProtocol, twisted.protocols.policies.TrafficLoggingProtocol, twisted.protocols.portforward.ProxyClient, twisted.protocols.portforward.ProxyServer, twisted.protocols.postfix.PostfixTCPMapServer, twisted.protocols.socks.SOCKSv4, twisted.protocols.socks.SOCKSv4Outgoing, twisted.protocols.test.test_basic.ExcessivelyLargeLineCatcher, twisted.protocols.test.test_basic.LineOnlyTester, twisted.protocols.test.test_basic.LineTester, twisted.protocols.test.test_tls.AccumulatingProtocol, twisted.protocols.wire.Chargen, twisted.protocols.wire.Daytime, twisted.protocols.wire.QOTD, twisted.protocols.wire.Time, twisted.protocols.wire.Who, twisted.python.test.test_sendmsg.StartStopProcessProtocol, twisted.python.test.test_util.PasswordTestingProcessProtocol, twisted.runner.inetd.InetdProtocol, twisted.runner.procmon.LoggingProtocol, twisted.spread.banana.Banana, twisted.test.process_twisted.Echo, twisted.test.stdio_test_consumer.ConsumerChild, twisted.test.stdio_test_halfclose.HalfCloseProtocol, twisted.test.stdio_test_hostpeer.HostPeerChild, twisted.test.stdio_test_lastwrite.LastWriteChild, twisted.test.stdio_test_loseconn.LoseConnChild, twisted.test.stdio_test_write.WriteChild, twisted.test.stdio_test_writeseq.WriteSequenceChild, twisted.test.test_amp.FactoryNotifier, twisted.test.test_amp.TestProto, twisted.test.test_application.Foo, twisted.test.test_ftp._BufferingProtocol, twisted.test.test_ftp.Dummy, twisted.test.test_ftp.PrintLines, twisted.test.test_internet.ChildResolveProtocol, twisted.test.test_loopback.SimpleProtocol, twisted.test.test_policies.SimpleProtocol, twisted.test.test_policies.TimeoutTester, twisted.test.test_process.Accumulator, twisted.test.test_process.EchoProtocol, twisted.test.test_process.FDChecker, twisted.test.test_process.TestProcessProtocol, twisted.test.test_ssl.LineCollector, twisted.test.test_ssl.RecordingClientProtocol, twisted.test.test_ssl.SingleLineServerProtocol, twisted.test.test_ssl.UnintelligentProtocol, twisted.test.test_sslverify.WritingProtocol, twisted.test.test_stateful.TestInt32, twisted.test.test_stdio.StandardIOTestProcessProtocol, twisted.test.test_tcp.ClosingProtocol, twisted.test.test_tcp.ConnectionLosingProtocol, twisted.test.test_tcp.LargeBufferWriterProtocol, twisted.test.test_tcp.NoopProtocol, twisted.test.test_tcp.WiredForDeferreds, twisted.test.test_tcp.WriterProtocol, twisted.test.test_tpfile.FileSendingClient, twisted.trial._dist.worker.LocalWorker, twisted.web._http2.H2Connection, twisted.web._newclient.HTTPParser, twisted.web.http.HTTPChannel, twisted.web.http.HTTPClient, twisted.web.sux.XMLParser, twisted.web.test.test_agent.SimpleAgentProtocol, twisted.web.twcgi.CGIProcessProtocol, twisted.words.protocols.irc.DccFileReceive, twisted.words.protocols.irc.DccSendProtocol, twisted.words.protocols.irc.IRC, twisted.words.protocols.irc.IRCClient, twisted.words.xish.xmlstream.XmlStream

Called when a connection is made.

This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.