Lines Matching refs:s
40 s = socket.socket(family, SOCK_DGRAM, 0)
41 s.bind((addr, 0))
42 return s
45 s = self._BuildSocket(family, addr)
46 addr = s.getsockname()
48 s.sendto("foo", addr)
49 data, addr = csocket.Recvfrom(s, 4096, 0)
53 s.close()
60 s = self._BuildSocket(family, addr)
63 s.setsockopt(SOL_IP, csocket.IP_PKTINFO, 1)
64 s.setsockopt(SOL_IP, csocket.IP_RECVTTL, 1)
71 s.setsockopt(SOL_IPV6, csocket.IPV6_RECVPKTINFO, 1)
72 s.setsockopt(SOL_IPV6, csocket.IPV6_RECVHOPLIMIT, 1)
78 addr = s.getsockname()
80 s.sendto("foo", addr)
81 data, addr, cmsg = csocket.Recvmsg(s, 4096, 1024, 0)
86 s.close()