Lines Matching refs:family
99 level = {AF_INET: SOL_IP, AF_INET6: SOL_IPV6}[s.family]
100 option = {AF_INET: IP_TOS, AF_INET6: IPV6_TCLASS}[s.family]
110 def Socket(family, sock_type, protocol): argument
111 s = socket(family, sock_type, protocol)
116 def PingSocket(family): argument
117 proto = {AF_INET: IPPROTO_ICMP, AF_INET6: IPPROTO_ICMPV6}[family]
118 return Socket(family, SOCK_DGRAM, proto)
129 def TCPSocket(family): argument
130 s = Socket(family, SOCK_STREAM, IPPROTO_TCP)
143 def UDPSocket(family): argument
144 return Socket(family, SOCK_DGRAM, IPPROTO_UDP)
147 def RawGRESocket(family): argument
148 s = Socket(family, SOCK_RAW, IPPROTO_GRE)
172 def CreateSocketPair(family, socktype, addr): argument
173 clientsock = socket(family, socktype, 0)
174 listensock = socket(family, socktype, 0)
245 family = AF_INET6
247 family = AF_INET
248 binary = inet_pton(family, address)