Lines Matching refs:family
117 level = {AF_INET: SOL_IP, AF_INET6: SOL_IPV6}[s.family]
118 option = {AF_INET: IP_TOS, AF_INET6: IPV6_TCLASS}[s.family]
128 def Socket(family, sock_type, protocol): argument
129 s = socket(family, sock_type, protocol)
134 def PingSocket(family): argument
135 proto = {AF_INET: IPPROTO_ICMP, AF_INET6: IPPROTO_ICMPV6}[family]
136 return Socket(family, SOCK_DGRAM, proto)
147 def TCPSocket(family): argument
148 s = Socket(family, SOCK_STREAM, IPPROTO_TCP)
161 def UDPSocket(family): argument
162 return Socket(family, SOCK_DGRAM, IPPROTO_UDP)
165 def RawGRESocket(family): argument
166 s = Socket(family, SOCK_RAW, IPPROTO_GRE)
190 def CreateSocketPair(family, socktype, addr): argument
191 clientsock = socket(family, socktype, 0)
192 listensock = socket(family, socktype, 0)
263 family = AF_INET6
265 family = AF_INET
266 binary = inet_pton(family, address)