Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`internet`.`protocol`.`AbstractDatagramProtocol``

class documentation

`class AbstractDatagramProtocol: (source)`

Known subclasses: `twisted.internet.protocol.DatagramProtocol`, `twisted.pair.ethernet.EthernetProtocol`, `twisted.pair.ip.IPProtocol`, `twisted.pair.rawudp.RawUDPProtocol`

View In Hierarchy

Abstract protocol for datagram-oriented transports, e.g. IP, ICMP, ARP, UDP.

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

def __getstate__(self): (source)

Undocumented

def datagramReceived(self, datagram, addr): (source)
overridden in `twisted.internet.protocol.ConnectedDatagramProtocol`, `twisted.names.dns.DNSDatagramProtocol`, `twisted.pair.ethernet.EthernetProtocol`, `twisted.pair.ip.IPProtocol`, `twisted.pair.rawudp.RawUDPProtocol`, `twisted.protocols.sip.Base`

Called when a datagram is received.

Parameters
datagram:`bytes` | the bytes received from the transport.
addr | tuple of source of datagram.

def doStart(self): (source)

Make sure startProtocol is called.

This will be called by makeConnection(), users should not call it.

def doStop(self): (source)

Make sure stopProtocol is called.

This will be called by the port, users should not call it.

def makeConnection(self, transport): (source)

Make a connection to a transport and a server.

This sets the 'transport' attribute of this DatagramProtocol, and calls the doStart() callback.

def startProtocol(self): (source)
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.

def stopProtocol(self): (source)
overridden in `twisted.names.dns.DNSDatagramProtocol`

Called when the transport is disconnected.

Will only be called once, after all ports are disconnected.

noisy: `bool` = (source)

Undocumented

numPorts = (source)

Undocumented

transport = (source)
overridden in `twisted.internet.protocol.DatagramProtocol`

Undocumented