Part of twisted.internet.protocol View Source View In Hierarchy
Known subclasses: twisted.internet.protocol.DatagramProtocol, twisted.pair.ethernet.EthernetProtocol, twisted.pair.ip.IPProtocol, twisted.pair.rawudp.RawUDPProtocol
Method | __getstate__ | Undocumented |
Method | doStart | Make sure startProtocol is called. |
Method | doStop | Make sure stopProtocol is called. |
Method | startProtocol | Called when a transport is connected to this protocol. |
Method | stopProtocol | Called when the transport is disconnected. |
Method | makeConnection | Make a connection to a transport and a server. |
Method | datagramReceived | Called when a datagram is received. |
This will be called by makeConnection(), users should not call it.
This will be called by the port, users should not call it.
Will only be called once, even if multiple ports are connected.
Will only be called once, after all ports are disconnected.
This sets the 'transport' attribute of this DatagramProtocol, and calls the doStart() callback.
Parameters | datagram | the string received from the transport. |
addr | tuple of source of datagram. |