module documentation
(source)

Support for generic select()able objects.

Class FileDescriptor An object which can be operated on by select().
Function isIPAddress Determine whether the given string represents an IP address of the given family; by default, an IPv4 address.
Function isIPv6Address Determine whether the given string represents an IPv6 address.
Function _dataMustBeBytes Undocumented
Function _concatenate Undocumented
Class _ConsumerMixin IConsumer implementations can mix this in to get registerProducer and unregisterProducer methods which take care of keeping track of a producer's state.
Class _LogOwner Mixin to help implement interfaces.ILoggingContext for transports which have a protocol, the log prefix of which should also appear in the transport's log prefix.
def _dataMustBeBytes(obj): (source)

Undocumented

def _concatenate(bObj, offset, bArray): (source)

Undocumented

def isIPAddress(addr, family=AF_INET): (source)

Determine whether the given string represents an IP address of the given family; by default, an IPv4 address.

ParametersaddrA string which may or may not be the decimal dotted representation of an IPv4 address. (type: str)
familyThe address family to test for; one of the AF_* constants from the socket module. (This parameter has only been available since Twisted 17.1.0; previously isIPAddress could only test for IPv4 addresses.) (type: int)
ReturnsTrue if addr represents an IPv4 address, False otherwise. (type: bool)
def isIPv6Address(addr): (source)

Determine whether the given string represents an IPv6 address.

ParametersaddrA string which may or may not be the hex representation of an IPv6 address. (type: str)
ReturnsTrue if addr represents an IPv6 address, False otherwise. (type: bool)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.