⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asyncfile.h

📁 本人收集整理的一份c/c++跨平台网络库
💻 H
字号:
#ifndef UTILS_BASE_ASYNCFILE_H_#define UTILS_BASE_ASYNCFILE_H_#include "sigslot.h"namespace utils_base {// Provides the ability to perform file I/O asynchronously.// TODO: Create a common base class with AsyncSocket.class AsyncFile {public:  virtual ~AsyncFile() {}  // Determines whether the file will receive read events.  virtual bool readable() = 0;  virtual void set_readable(bool value) = 0;  // Determines whether the file will receive write events.  virtual bool writable() = 0;  virtual void set_writable(bool value) = 0;  sigslot::signal1<AsyncFile*> SignalReadEvent;  sigslot::signal1<AsyncFile*> SignalWriteEvent;  sigslot::signal2<AsyncFile*,int> SignalCloseEvent;};} // namespace utils_base#endif // UTILS_BASE_ASYNCFILE_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -