Lines Matching refs:socket_name
78 bool MakeSockAddr(const std::string& socket_name,
82 const size_t name_len = socket_name.size();
87 memcpy(addr->sun_path, socket_name.data(), name_len);
179 bool UnixSocketRaw::Bind(const std::string& socket_name) {
183 if (!MakeSockAddr(socket_name, &addr, &addr_size))
187 PERFETTO_DPLOG("bind(%s)", socket_name.c_str());
200 bool UnixSocketRaw::Connect(const std::string& socket_name) {
204 if (!MakeSockAddr(socket_name, &addr, &addr_size))
371 std::unique_ptr<UnixSocket> UnixSocket::Listen(const std::string& socket_name,
376 if (!sock_raw || !sock_raw.Bind(socket_name))
394 std::unique_ptr<UnixSocket> UnixSocket::Connect(const std::string& socket_name,
400 sock->DoConnect(socket_name);
492 void UnixSocket::DoConnect(const std::string& socket_name) {
499 if (!sock_raw_.Connect(socket_name)) {