POSIX implementation of local network interface enumeration.

Function chr Python 3 implementation of Python 2 chr(), i.e. convert an integer to corresponding byte.
Class in_addr Undocumented
Class in6_addr Undocumented
Class sockaddr Undocumented
Class sockaddr_in Undocumented
Class sockaddr_in6 Undocumented
Class ifaddrs Undocumented
Function posixGetLinkLocalIPv6Addresses Return a list of strings in colon-hex format representing all the link local IPv6 addresses available on the system, as reported by getifaddrs(3).
Function _maybeCleanupScopeIndex On FreeBSD, kill the embedded interface indices in link-local scoped addresses.
Function _interfaces Call getifaddrs(3) and return a list of tuples of interface name, address family, and human-readable address representing its results.
def chr(i):

Python 3 implementation of Python 2 chr(), i.e. convert an integer to corresponding byte.

def _maybeCleanupScopeIndex(family, packed):

On FreeBSD, kill the embedded interface indices in link-local scoped addresses.

ParametersfamilyThe address family of the packed address - one of the socket.AF_* constants.
packedThe packed representation of the address (ie, the bytes of a in_addr field). (type: bytes)
ReturnsThe packed address with any FreeBSD-specific extra bits cleared. (type: bytes)
See Alsohttps://twistedmatrix.com/trac/ticket/6843
http://www.freebsd.org/doc/en/books/developers-handbook/ipv6.html#ipv6-scope-index
NoteIndications are that the need for this will be gone in FreeBSD >=10.
def _interfaces():

Call getifaddrs(3) and return a list of tuples of interface name, address family, and human-readable address representing its results.

def posixGetLinkLocalIPv6Addresses():

Return a list of strings in colon-hex format representing all the link local IPv6 addresses available on the system, as reported by getifaddrs(3).

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.