Lines Matching refs:fd_
44 fd_(-1), in AsyncConnection()
53 DCHECK_LT(fd_, 0); in Start()
59 fd_ = sockets_->Socket(family, SOCK_STREAM, 0); in Start()
60 if (fd_ < 0 || in Start()
61 sockets_->SetNonBlocking(fd_) < 0) { in Start()
69 sockets_->BindToDevice(fd_, interface_name_) < 0) { in Start()
78 callback_.Run(true, fd_); // Passes ownership in Start()
79 fd_ = -1; in Start()
91 dispatcher_->CreateReadyHandler(fd_, in Start()
101 if (fd_ >= 0) { in Stop()
102 sockets_->Close(fd_); in Stop()
103 fd_ = -1; in Stop()
108 CHECK_EQ(fd_, fd); in OnConnectCompletion()
112 if (sockets_->GetSocketError(fd_) != 0) { in OnConnectCompletion()
116 returned_fd = fd_; in OnConnectCompletion()
117 fd_ = -1; in OnConnectCompletion()
157 return sockets_->Connect(fd_, sock_addr, addr_len); in ConnectTo()