Lines Matching full:sock
59 sock = socket.socket(family, socket.SOCK_DGRAM, 0)
61 BpfProgAttachSocket(sock.fileno(), prog_fd)
62 net_test.SetNonBlocking(sock)
64 sock.bind((addr, 0))
65 addr = sock.getsockname()
68 sock.sendto("foo", addr)
69 data, retaddr = csocket.Recvfrom(sock, 4096, 0)
72 return sock
155 self.sock = None
162 if self.sock:
163 self.sock.close()
280 self.sock = SocketUDPLoopBack(packet_count, version, self.prog_fd)
281 cookie = sock_diag.SockDiag.GetSocketCookie(self.sock)
283 self.sock.close()