Home
last modified time | relevance | path

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

/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DSocketComm.cpp40 : mListenFd(-1), mMessageProcessor(messageProcessor) {} in SocketComm()
54 if (mListenFd > 0) { in stop()
55 ::close(mListenFd); in stop()
59 mListenFd = -1; in stop()
74 mListenFd = socket(AF_INET, SOCK_STREAM, 0); in listen()
75 if (mListenFd < 0) { in listen()
76 ALOGE("%s: socket() failed, mSockFd=%d, errno=%d", __FUNCTION__, mListenFd, errno); in listen()
77 mListenFd = -1; in listen()
86 retVal = bind(mListenFd, reinterpret_cast<struct sockaddr*>(&servAddr), sizeof(servAddr)); in listen()
89 close(mListenFd); in listen()
[all …]
DSocketComm.h53 int mListenFd;
/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()
63 if (mListenFd >= 0) { in ~SocketConnectionDetector()
75 return ::accept(mListenFd, nullptr, nullptr); in waitForConnection()
DConnectionDetector.h56 int mListenFd; variable