Lines Matching refs:FileInstance
81 class FileInstance; variable
133 SharedFD(const std::shared_ptr<FileInstance>& in) : value_(in) {} in SharedFD()
139 static SharedFD Accept(const FileInstance& listener, struct sockaddr* addr,
141 static SharedFD Accept(const FileInstance& listener);
214 std::shared_ptr<FileInstance> operator->() const { return value_; }
216 const FileInstance& operator*() const { return *value_; }
218 FileInstance& operator*() { return *value_; }
223 std::shared_ptr<FileInstance> value_;
240 std::weak_ptr<FileInstance> value_;
287 class FileInstance {
293 virtual ~FileInstance() { Close(); } in ~FileInstance()
296 static std::shared_ptr<FileInstance> ClosedInstance();
310 bool CopyFrom(FileInstance& in, size_t length, FileInstance* stop = nullptr);
312 bool CopyAllFrom(FileInstance& in, FileInstance* stop = nullptr);
403 FileInstance(int fd, int in_errno);
404 FileInstance* Accept(struct sockaddr* addr, socklen_t* addrlen) const;
421 SharedFD::SharedFD() : value_(FileInstance::ClosedInstance()) {} in SharedFD()