class AbstractDatagramProtocol: (source)
Known subclasses: twisted.internet.protocol.DatagramProtocol
, twisted.pair.ethernet.EthernetProtocol
, twisted.pair.ip.IPProtocol
, twisted.pair.rawudp.RawUDPProtocol
Method | __getstate__ |
Undocumented |
Method | datagramReceived |
Called when a datagram is received. |
Method | doStart |
Make sure startProtocol is called. |
Method | doStop |
Make sure stopProtocol is called. |
Method | makeConnection |
Make a connection to a transport and a server. |
Method | startProtocol |
Called when a transport is connected to this protocol. |
Method | stopProtocol |
Called when the transport is disconnected. |
Class Variable | noisy |
Undocumented |
Instance Variable | numPorts |
Undocumented |
Instance Variable | transport |
Undocumented |
twisted.internet.protocol.ConnectedDatagramProtocol
, twisted.pair.ethernet.EthernetProtocol
, twisted.pair.ip.IPProtocol
, twisted.pair.rawudp.RawUDPProtocol
, twisted.protocols.sip.Base
Parameters | |
datagram:bytes | the bytes received from the transport. |
addr | tuple of source of datagram. |
Make sure startProtocol is called.
This will be called by makeConnection(), users should not call it.
Make a connection to a transport and a server.
This sets the 'transport' attribute of this DatagramProtocol, and calls the doStart() callback.
Called when a transport is connected to this protocol.
Will only be called once, even if multiple ports are connected.