Home
last modified time | relevance | path

Searched refs:mListenFd (Results 1 – 2 of 2) sorted by relevance

/hardware/libhardware/modules/sensors/dynamic_sensor/
DConnectionDetector.cpp36 mListenFd = ::socket(AF_INET, SOCK_STREAM, 0); in SocketConnectionDetector()
37 if (mListenFd < 0) { in SocketConnectionDetector()
50 ::bind(mListenFd, (struct sockaddr*)&serverAddress, sizeof(serverAddress)); in SocketConnectionDetector()
51 if (::listen(mListenFd, 0) != NO_ERROR) { in SocketConnectionDetector()
53 mListenFd = -1; in SocketConnectionDetector()
65 if (mListenFd >= 0) { in ~SocketConnectionDetector()
71 return ::accept(mListenFd, nullptr, nullptr); in waitForConnection()
DConnectionDetector.h54 int mListenFd; variable