Searched refs:alen (Results 1 – 1 of 1) sorted by relevance
279 def _ToSocketAddress(addr, alen): argument280 addr = addr[:alen]283 if alen == 0:285 elif alen == len(SockaddrIn) and SockaddrIn(addr).family == socket.AF_INET:287 elif alen == len(SockaddrIn6) and SockaddrIn6(addr).family == socket.AF_INET6:289 elif alen == len(SockaddrStorage): # Can this ever happen?341 alen = ctypes.c_int(len(addr))344 addr, ctypes.byref(alen))348 alen = alen.value350 addr = _ToSocketAddress(addr.raw, alen)