Lines Matching refs:s
41 s = net_test.TCPSocket(net_test.GetAddressFamily(version))
42 net_test.DisableFinWait(s)
43 self.SelectInterface(s, netid, "mark")
44 s.setsockopt(IPPROTO_TCP, TCP_FASTOPEN_CONNECT, 1)
45 return s
69 s = self.TFOClientSocket(version, netid)
76 s.connect((remoteaddr, 53))
77 self.assertSocketNotConnected(s)
81 port = s.getsockname()[1]
99 self.assertSocketConnected(s)
100 s.close()
107 s = self.TFOClientSocket(version, netid)
108 s.connect((remoteaddr, 53))
109 self.assertSocketNotConnected(s)
113 port = s.getsockname()[1]
114 s.send(net_test.UDP_PAYLOAD)