|
|
@ -32,10 +32,7 @@ int main() |
|
|
|
|
|
|
|
|
|
|
|
//设置特征
|
|
|
|
event_config_require_features(conf, EV_FEATURE_FDS); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//event_config_require_features(conf, EV_FEATURE_FDS);
|
|
|
|
|
|
|
|
|
|
|
|
//初始化配置上下文
|
|
|
@ -52,6 +49,10 @@ int main() |
|
|
|
|
|
|
|
} |
|
|
|
else { |
|
|
|
//获取当前网络模型
|
|
|
|
cout << "current mothed is " << event_base_get_method(base) << endl; |
|
|
|
|
|
|
|
|
|
|
|
//确认特征是否生效
|
|
|
|
int f = event_base_get_features(base); |
|
|
|
if (f& EV_FEATURE_ET) { |
|
|
|