Add an existing listening SOCK_DGRAM socket to the reactor to monitor for read and write readiness.

ParametersfileDescriptorA file descriptor associated with a socket which is already bound to an address and marked as listening. The socket must be set non-blocking. Any additional flags (for example, close-on-exec) must also be set by application code. Application code is responsible for closing the file descriptor, which may be done as soon as adoptDatagramPort returns. (type: int)
addressFamilyThe address family or domain of the socket. For example, socket.AF_INET6. (type: int)
protocolA DatagramProtocol instance to connect to a UDP transport. (type: DatagramProtocol)
maxPacketSizeThe maximum packet size to accept. (type: int)
ReturnsAn object providing IListeningPort.
RaisesUnsupportedAddressFamilyIf the given address family is not supported by this reactor, or not supported with the given socket type.
UnsupportedSocketTypeIf the given socket type is not supported by this reactor, or not supported with the given socket type.
API Documentation for Twisted, generated by pydoctor at 2017-06-11 10:59:01.