Lines Matching refs:mAddr
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()
171 inline virtual ~LocIpcLocalRecver() { unlink(mAddr.sun_path); } in ~LocIpcLocalRecver()
172 inline virtual const char* getName() const override { return mAddr.sun_path; }; in getName()
175 mSock->sendAbort(0, (struct sockaddr*)&mAddr, sizeof(mAddr)); in abort()
184 sockaddr_in mAddr; member in loc_util::LocIpcInetTcpSender
190 ::connect(mSock->mSid, (const struct sockaddr*)&mAddr, sizeof(mAddr)); in send()
192 return mSock->send(data, length, 0, (struct sockaddr*)&mAddr, sizeof(mAddr)); in send()
198 mAddr({.sin_family=AF_INET, .sin_port=htons(port), .sin_addr={htonl(INADDR_ANY)}}), in LocIpcInetTcpSender()
203 memcpy((char*)&(mAddr.sin_addr.s_addr), hp->h_addr_list[0], hp->h_length);
213 socklen_t size = sizeof(mAddr); in recv()
216 (mConnFd = accept(mSock->mSid, (struct sockaddr*)&mAddr, &size)) < 0) { in recv()
221 return mSock->recv(mDataCb, 0, (struct sockaddr*)&mAddr, &size, mConnFd); in recv()
227 if (mSock->isValid() && ::bind(mSock->mSid, (struct sockaddr*)&mAddr, sizeof(mAddr)) < 0) { in LocIpcInetTcpRecver()
236 mSock->sendAbort(0, (struct sockaddr*)&mAddr, sizeof(mAddr)); in abort()