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