Lines Matching refs:server
55 struct sockaddr_un server; in StartConnect() local
56 (void)memset_s(&server, sizeof(server), 0, sizeof(server)); in StartConnect()
57 server.sun_family = AF_LOCAL; in StartConnect()
58 errno_t err = strncpy_s(server.sun_path, sizeof(server.sun_path), fullPath.c_str(), in StartConnect()
59 sizeof(server.sun_path) - 1); in StartConnect()
65 … int len = static_cast<int>(offsetof(struct sockaddr_un, sun_path) + strlen(server.sun_path) + 1); in StartConnect()
66 int connected = connect(sockfd, reinterpret_cast<struct sockaddr *>(&server), len); in StartConnect()
90 struct sockaddr_un server; in GetServerSocket() local
91 (void)memset_s(&server, sizeof(server), 0, sizeof(server)); in GetServerSocket()
92 server.sun_family = AF_LOCAL; in GetServerSocket()
93 …if (strncpy_s(server.sun_path, sizeof(server.sun_path), path.c_str(), sizeof(server.sun_path) - 1)… in GetServerSocket()
108 if (bind(sockfd, (struct sockaddr *)&server, in GetServerSocket()
109 offsetof(struct sockaddr_un, sun_path) + strlen(server.sun_path)) < 0) { in GetServerSocket()