class documentation
class AbstractDatagramProtocol: (source)
Known subclasses: twisted.internet.protocol.DatagramProtocol
, twisted.pair.ethernet.EthernetProtocol
, twisted.pair.ip.IPProtocol
, twisted.pair.rawudp.RawUDPProtocol
Abstract protocol for datagram-oriented transports, e.g. IP, ICMP, ARP, UDP.
Method | __getstate__ |
Undocumented |
Method | datagram |
Called when a datagram is received. |
Method | do |
Make sure startProtocol is called. |
Method | do |
Make sure stopProtocol is called. |
Method | make |
Make a connection to a transport and a server. |
Method | start |
Called when a transport is connected to this protocol. |
Method | stop |
Called when the transport is disconnected. |
Class Variable | noisy |
Undocumented |
Instance Variable | num |
Undocumented |
Instance Variable | transport |
Undocumented |
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.
overridden in
twisted.names.dns.DNSDatagramProtocol
Called when a transport is connected to this protocol.
Will only be called once, even if multiple ports are connected.
overridden in
twisted.names.dns.DNSDatagramProtocol
Called when the transport is disconnected.
Will only be called once, after all ports are disconnected.