Searched refs:mAddr (Results 1 – 3 of 3) sorted by relevance
/hardware/qcom/sm7150/gps/utils/ |
D | LocIpc.cpp | 135 struct sockaddr_un mAddr; member in loc_util::LocIpcLocalSender 138 return mSock->send(data, length, 0, (struct sockaddr*)&mAddr, sizeof(mAddr)); in send() 143 mAddr({.sun_family = AF_UNIX, {}}) { in LocIpcLocalSender() 157 snprintf(mAddr.sun_path, sizeof(mAddr.sun_path), "%s", name); 165 socklen_t size = sizeof(mAddr); in recv() 166 return mSock->recv(*this, mDataCb, 0, (struct sockaddr*)&mAddr, &size); in recv() 172 if ((unlink(mAddr.sun_path) < 0) && (errno != ENOENT)) { in LocIpcLocalRecver() 177 if (mSock->isValid() && ::bind(mSock->mSid, (struct sockaddr*)&mAddr, sizeof(mAddr)) < 0) { in LocIpcLocalRecver() 179 mAddr.sun_path, strerror(errno)); in LocIpcLocalRecver() 183 inline virtual ~LocIpcLocalRecver() { unlink(mAddr.sun_path); } in ~LocIpcLocalRecver() [all …]
|
/hardware/qcom/sm8150/gps/utils/ |
D | LocIpc.cpp | 135 struct sockaddr_un mAddr; member in loc_util::LocIpcLocalSender 138 return mSock->send(data, length, 0, (struct sockaddr*)&mAddr, sizeof(mAddr)); in send() 143 mAddr({.sun_family = AF_UNIX, {}}) { in LocIpcLocalSender() 157 snprintf(mAddr.sun_path, sizeof(mAddr.sun_path), "%s", name); 165 socklen_t size = sizeof(mAddr); in recv() 166 return mSock->recv(*this, mDataCb, 0, (struct sockaddr*)&mAddr, &size); in recv() 172 if ((unlink(mAddr.sun_path) < 0) && (errno != ENOENT)) { in LocIpcLocalRecver() 177 if (mSock->isValid() && ::bind(mSock->mSid, (struct sockaddr*)&mAddr, sizeof(mAddr)) < 0) { in LocIpcLocalRecver() 179 mAddr.sun_path, strerror(errno)); in LocIpcLocalRecver() 183 inline virtual ~LocIpcLocalRecver() { unlink(mAddr.sun_path); } in ~LocIpcLocalRecver() [all …]
|
/hardware/qcom/sm8150p/gps/utils/ |
D | LocIpc.cpp | 136 struct sockaddr_un mAddr; member in loc_util::LocIpcLocalSender 139 return mSock->send(data, length, 0, (struct sockaddr*)&mAddr, sizeof(mAddr)); in send() 144 mAddr({.sun_family = AF_UNIX, {}}) { in LocIpcLocalSender() 146 snprintf(mAddr.sun_path, sizeof(mAddr.sun_path), "%s", name); 154 socklen_t size = sizeof(mAddr); in recv() 155 return mSock->recv(mDataCb, 0, (struct sockaddr*)&mAddr, &size); in recv() 161 if ((unlink(mAddr.sun_path) < 0) && (errno != ENOENT)) { in LocIpcLocalRecver() 166 if (mSock->isValid() && ::bind(mSock->mSid, (struct sockaddr*)&mAddr, sizeof(mAddr)) < 0) { in LocIpcLocalRecver() 168 mAddr.sun_path, strerror(errno)); in LocIpcLocalRecver() 172 inline virtual ~LocIpcLocalRecver() { unlink(mAddr.sun_path); } in ~LocIpcLocalRecver() [all …]
|