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()
168 mAddr.sun_path, strerror(errno)); in LocIpcLocalRecver()
172 inline virtual ~LocIpcLocalRecver() { unlink(mAddr.sun_path); } in ~LocIpcLocalRecver()
173 inline virtual const char* getName() const override { return mAddr.sun_path; }; in getName()
176 mSock->sendAbort(0, (struct sockaddr*)&mAddr, sizeof(mAddr)); in abort()
186 sockaddr_in mAddr; member in loc_util::LocIpcInetSender
189 return mSock->send(data, length, 0, (struct sockaddr*)&mAddr, sizeof(mAddr)); in send()
196 mAddr({.sin_family = AF_INET, .sin_port = htons(port), in LocIpcInetSender()
201 memcpy((char*)&(mAddr.sin_addr.s_addr), hp->h_addr_list[0], hp->h_length);
214 ::connect(mSock->mSid, (const struct sockaddr*)&mAddr, sizeof(mAddr)); in send()
216 return mSock->send(data, length, 0, (struct sockaddr*)&mAddr, sizeof(mAddr)); in send()
234 if (mSock->isValid() && ::bind(mSock->mSid, (struct sockaddr*)&mAddr, sizeof(mAddr)) < 0) { in LocIpcInetRecver()
255 socklen_t size = sizeof(mAddr); in recv()
258 (mConnFd = accept(mSock->mSid, (struct sockaddr*)&mAddr, &size)) < 0) { in recv()
263 return mSock->recv(mDataCb, 0, (struct sockaddr*)&mAddr, &size, mConnFd); in recv()
275 socklen_t size = sizeof(mAddr); in recv()
276 return mSock->recv(mDataCb, 0, (struct sockaddr*)&mAddr, &size); in recv()