Lines Matching refs:s
32 s = socket(family, SOCK_DGRAM, 0)
33 s.bind((addr, 0))
34 return s
37 s = self._BuildSocket(family, addr)
38 addr = s.getsockname()
40 s.sendto("foo", addr)
41 data, addr = csocket.Recvfrom(s, 4096, 0)
45 s.close()
52 s = self._BuildSocket(family, addr)
55 s.setsockopt(SOL_IP, csocket.IP_PKTINFO, 1)
56 s.setsockopt(SOL_IP, csocket.IP_RECVTTL, 1)
63 s.setsockopt(SOL_IPV6, csocket.IPV6_RECVPKTINFO, 1)
64 s.setsockopt(SOL_IPV6, csocket.IPV6_RECVHOPLIMIT, 1)
70 addr = s.getsockname()
72 s.sendto("foo", addr)
73 data, addr, cmsg = csocket.Recvmsg(s, 4096, 1024, 0)
78 s.close()