Lines Matching refs:addr
39 def _BuildSocket(self, family, addr): argument
41 s.bind((addr, 0))
44 def CheckRecvfrom(self, family, addr): argument
45 s = self._BuildSocket(family, addr)
46 addr = s.getsockname()
47 sockaddr = csocket.Sockaddr(addr)
48 s.sendto("foo", addr)
49 data, addr = csocket.Recvfrom(s, 4096, 0)
51 self.assertEqual(sockaddr, addr)
59 def CheckRecvmsg(self, family, addr): argument
60 s = self._BuildSocket(family, addr)
65 pktinfo_addr = inet_pton(AF_INET, addr)
73 pktinfo_addr = inet_pton(AF_INET6, addr)
78 addr = s.getsockname()
79 sockaddr = csocket.Sockaddr(addr)
80 s.sendto("foo", addr)
81 data, addr, cmsg = csocket.Recvmsg(s, 4096, 1024, 0)
83 self.assertEqual(sockaddr, addr)