Searched refs:sockname (Results 1 – 2 of 2) sorted by relevance
/openthread-latest/src/posix/ |
D | client.cpp | 169 struct sockaddr_un sockname; in ConnectSession() local 171 memset(&sockname, 0, sizeof(struct sockaddr_un)); in ConnectSession() 172 sockname.sun_family = AF_UNIX; in ConnectSession() 173 … ret = snprintf(sockname.sun_path, sizeof(sockname.sun_path), OPENTHREAD_POSIX_DAEMON_SOCKET_NAME, in ConnectSession() 175 VerifyOrExit(ret >= 0 && static_cast<size_t>(ret) < sizeof(sockname.sun_path), { in ConnectSession() 180 …ret = connect(sSessionFd, reinterpret_cast<const struct sockaddr *>(&sockname), sizeof(struct sock… in ConnectSession()
|
/openthread-latest/src/posix/platform/ |
D | daemon.cpp | 198 struct sockaddr_un sockname; in createListenSocketOrDie() local 254 memset(&sockname, 0, sizeof(struct sockaddr_un)); in createListenSocketOrDie() 256 sockname.sun_family = AF_UNIX; in createListenSocketOrDie() 257 GetFilename(sockname.sun_path, OPENTHREAD_POSIX_DAEMON_SOCKET_NAME); in createListenSocketOrDie() 258 (void)unlink(sockname.sun_path); in createListenSocketOrDie() 263 …ret = bind(mListenSocket, reinterpret_cast<const struct sockaddr *>(&sockname), sizeof(struct sock… in createListenSocketOrDie()
|