Lines Matching refs:read_sock
110 read_sock = socket(net_test.GetAddressFamily(version), SOCK_DGRAM, 0)
111 read_sock.bind((net_test.GetWildcardAddress(version), port))
113 local_port = read_sock.getsockname()[1]
115 csocket.SetSocketTimeout(read_sock, 500)
117 return read_sock, local_port
159 remote_outer, read_sock): argument
162 local_port = read_sock.getsockname()[1]
171 data, src = read_sock.recvfrom(4096)
210 read_sock, _ = _CreateReceiveSock(inner_version)
212 sock = write_sock if direction == xfrm.XFRM_POLICY_OUT else read_sock
654 read_sock, local_port = _CreateReceiveSock(inner_version)
662 self.assertRaisesErrno(EAGAIN, read_sock.recv, 4096)
665 data, src = read_sock.recvfrom(4096)
745 read_sock, local_port = _CreateReceiveSock(inner_version,
750 data, src = read_sock.recvfrom(4096)