Searched refs:mListenFd (Results 1 – 4 of 4) sorted by relevance
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/ |
D | SocketComm.cpp | 40 : 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 …]
|
D | SocketComm.h | 53 int mListenFd;
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | ConnectionDetector.cpp | 36 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()
|
D | ConnectionDetector.h | 56 int mListenFd; variable
|