Searched refs:SockaddrIn (Results 1 – 4 of 4) sorted by relevance
34 SockaddrIn = cstruct.Struct("sockaddr_in", "=HH4sxxxxxxxx", "family port addr") variable126 return SockaddrIn((family, socket.ntohs(port), addr))285 elif alen == len(SockaddrIn) and SockaddrIn(addr).family == socket.AF_INET:286 return SockaddrIn(addr)
53 sockaddr = csocket.SockaddrIn((AF_INET, 0, addr)).Pack()
153 addr = csocket.SockaddrIn(addr.Pack())
440 "\x00" * (len(csocket.SockaddrIn6) - len(csocket.SockaddrIn)))