class documentation
Method test_allowBroadcast IListeningPort.setBroadcastAllowed sets broadcast to be allowed on the socket.
Method test_connectedWriteToIPv6Interface An IPv6 address can be passed as the interface argument to listenUDP. The resulting Port accepts IPv6 datagrams.
Method test_connectingToHostnameRaisesInvalidAddressError Connecting to a hostname instead of an IP address will raise an InvalidAddressError.
Method test_getHost IListeningPort.getHost returns an IPv4Address giving a dotted-quad of the IPv4 address the port is listening on as well as the port number.
Method test_getHostIPv6 IListeningPort.getHost returns an IPv6Address when listening on an IPv6 interface.
Method test_interface IReactorUDP.listenUDP returns an object providing IListeningPort.
Method test_invalidInterface An InvalidAddressError is raised when trying to listen on an address that isn't a valid IPv4 or IPv6 address.
Method test_logPrefix Datagram transports implement ILoggingContext.logPrefix to return a message reflecting the protocol they are running.
Method test_repr repr() on the listening port object includes the port number.
Method test_str str() on the listening port object includes the port number.
Method test_writeSequence Write a sequence of bytes to a DatagramProtocol.
Method test_writeToIPv6Interface Writing to an IPv6 UDP socket on the loopback interface succeeds.
Method test_writingToHostnameRaisesInvalidAddressError Writing to a hostname instead of an IP address will raise an InvalidAddressError.
Method test_writingToIPv4OnIPv6RaisesInvalidAddressError Writing to an IPv6 address on an IPv4 socket will raise an InvalidAddressError.
Method test_writingToIPv6OnIPv4RaisesInvalidAddressError Writing to an IPv6 address on an IPv4 socket will raise an InvalidAddressError.
def test_allowBroadcast(self): (source)

IListeningPort.setBroadcastAllowed sets broadcast to be allowed on the socket.

@skipWithoutIPv6
def test_connectedWriteToIPv6Interface(self): (source)

An IPv6 address can be passed as the interface argument to listenUDP. The resulting Port accepts IPv6 datagrams.

def test_connectingToHostnameRaisesInvalidAddressError(self): (source)

Connecting to a hostname instead of an IP address will raise an InvalidAddressError.

def test_getHost(self): (source)

IListeningPort.getHost returns an IPv4Address giving a dotted-quad of the IPv4 address the port is listening on as well as the port number.

@skipWithoutIPv6
def test_getHostIPv6(self): (source)

IListeningPort.getHost returns an IPv6Address when listening on an IPv6 interface.

def test_interface(self): (source)

IReactorUDP.listenUDP returns an object providing IListeningPort.

def test_invalidInterface(self): (source)

An InvalidAddressError is raised when trying to listen on an address that isn't a valid IPv4 or IPv6 address.

def test_logPrefix(self): (source)

Datagram transports implement ILoggingContext.logPrefix to return a message reflecting the protocol they are running.

def test_repr(self): (source)

repr() on the listening port object includes the port number.

def test_str(self): (source)

str() on the listening port object includes the port number.

def test_writeSequence(self): (source)

Write a sequence of bytes to a DatagramProtocol.

@skipWithoutIPv6
def test_writeToIPv6Interface(self): (source)

Writing to an IPv6 UDP socket on the loopback interface succeeds.

def test_writingToHostnameRaisesInvalidAddressError(self): (source)

Writing to a hostname instead of an IP address will raise an InvalidAddressError.

@skipWithoutIPv6
def test_writingToIPv4OnIPv6RaisesInvalidAddressError(self): (source)

Writing to an IPv6 address on an IPv4 socket will raise an InvalidAddressError.

@skipWithoutIPv6
def test_writingToIPv6OnIPv4RaisesInvalidAddressError(self): (source)

Writing to an IPv6 address on an IPv4 socket will raise an InvalidAddressError.