Lines Matching refs:socket_
582 return socket_.get() != -1; in running()
607 socket_.reset(socket(ai->ai_family, ai->ai_socktype | SOCK_NONBLOCK, ai->ai_protocol)); in startServer()
608 if (socket_.get() < 0) { in startServer()
609 APLOGI("ignore creating socket %d failed", socket_.get()); in startServer()
612 enableSockopt(socket_.get(), SOL_SOCKET, SO_REUSEPORT).ignoreError(); in startServer()
613 enableSockopt(socket_.get(), SOL_SOCKET, SO_REUSEADDR).ignoreError(); in startServer()
615 if (bind(socket_.get(), ai->ai_addr, ai->ai_addrlen)) { in startServer()
637 ALOGI("adding socket %d to epoll", socket_.get()); in startServer()
638 if (!addFd(socket_.get(), EPOLLIN)) { in startServer()
639 ALOGE("failed to add the socket %d to epoll", socket_.get()); in startServer()
668 socket_.reset(); in stopServer()
708 } else if (fd == socket_.get() && (events & (EPOLLIN | EPOLLERR))) { in requestHandler()
941 len = recvfrom(socket_.get(), buffer, sizeof(buffer), 0, (sockaddr*)&sa, &sa_len); in handleQuery()
958 len = sendto(socket_.get(), response, response_len, 0, in handleQuery()