Lines Matching refs:sock_raw_
435 sock_raw_ = UnixSocketRaw::CreateMayFail(sock_type); in UnixSocket()
436 if (!sock_raw_) { in UnixSocket()
442 sock_raw_ = UnixSocketRaw(std::move(adopt_fd), sock_type); in UnixSocket()
454 sock_raw_ = UnixSocketRaw(std::move(adopt_fd), sock_type); in UnixSocket()
455 if (!sock_raw_.Listen()) { in UnixSocket()
465 PERFETTO_CHECK(sock_raw_); in UnixSocket()
468 sock_raw_.SetBlocking(false); in UnixSocket()
471 task_runner_->AddFileDescriptorWatch(sock_raw_.fd(), [weak_ptr] { in UnixSocket()
485 if (sock_raw_) in ReleaseSocket()
486 task_runner_->RemoveFileDescriptorWatch(sock_raw_.fd()); in ReleaseSocket()
488 return std::move(sock_raw_); in ReleaseSocket()
496 if (!sock_raw_) in DoConnect()
499 if (!sock_raw_.Connect(socket_name)) { in DoConnect()
529 int fd = sock_raw_.fd(); in ReadPeerCredentials()
537 int res = getsockopt(sock_raw_.fd(), 0, LOCAL_PEERCRED, &user_cred, &len); in ReadPeerCredentials()
552 PERFETTO_DCHECK(sock_raw_); in OnEvent()
556 getsockopt(sock_raw_.fd(), SOL_SOCKET, SO_ERROR, &sock_err, &err_len); in OnEvent()
577 sock_raw_.fd(), reinterpret_cast<sockaddr*>(&cli_addr), &size))); in OnEvent()
582 State::kConnected, sock_raw_.type())); in OnEvent()
603 sock_raw_.SetBlocking(true); in Send()
604 const ssize_t sz = sock_raw_.Send(msg, len, send_fds, num_fds); in Send()
607 sock_raw_.SetBlocking(false); in Send()
650 if (sock_raw_) { in Shutdown()
651 task_runner_->RemoveFileDescriptorWatch(sock_raw_.fd()); in Shutdown()
652 sock_raw_.Shutdown(); in Shutdown()
666 const ssize_t sz = sock_raw_.Receive(msg, len, fd_vec, max_files); in Receive()