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

📄 poller_sigfd.h

📁 实现了poll/epoll/devpoll等C++封装
💻 H
字号:
#ifndef Poller_sigfd_h#define Poller_sigfd_h#if HAVE_F_SETSIG && HAVE_F_SETAUXFL#include "Poller_sigio.h"/// Implementation of Poller for Vitaly Luban's sig-per-fd (O_ONESIGFD) patch.class Poller_sigfd : public Poller_sigio {public:	/**	 Add a file descriptor to the set we monitor. 	 Caller should already have established a handler for SIGIO.	 @param fd file descriptor to add	 @param client object to handle events for this fd.  May use same client with more than one fd.	 @param eventmask initial event mask for this fd	 */	virtual int add(int fd, Client *client, short eventmask);	/// Remove a file descriptor.	virtual int del(int fd);};#endif#endif

⌨️ 快捷键说明

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