在macos中没有提供epoll的功能,使用的是kqueue,主要关注的函数和参数有下面三个:
struct kevent{
}
EV_SET();
kevent();
下面就是关于kqueue使用的简单例子:
未完待续。。。代码施工中
参考:https://github.com/yedf2/kqueue-example/blob/master/main.cc
在macos中没有提供epoll的功能,使用的是kqueue,主要关注的函数和参数有下面三个:
struct kevent{
}
EV_SET();
kevent();
下面就是关于kqueue使用的简单例子:
未完待续。。。代码施工中
参考:https://github.com/yedf2/kqueue-example/blob/master/main.cc