Lines Matching refs:sock
131 sock = socket.socket(family, socket.SOCK_DGRAM, 0)
133 BpfProgAttachSocket(sock.fileno(), prog_fd)
134 net_test.SetNonBlocking(sock)
136 sock.bind((addr, 0))
137 addr = sock.getsockname()
140 sock.sendto("foo", addr)
141 data, retaddr = csocket.Recvfrom(sock, 4096, 0)
144 return sock
228 self.sock = None
235 if self.sock:
236 self.sock.close()
434 self.sock = SocketUDPLoopBack(packet_count, version, self.prog_fd)
435 cookie = sock_diag.SockDiag.GetSocketCookie(self.sock)
437 self.sock.close()
563 sock = socket.socket(family, socktype, 0)
564 sock.close()