|
@ -32,7 +32,9 @@ int main() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//设置特征
|
|
|
//设置特征
|
|
|
|
|
|
|
|
|
|
|
|
event_config_require_features(conf, EV_FEATURE_FDS); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -42,6 +44,12 @@ int main() |
|
|
|
|
|
|
|
|
if (!base) { |
|
|
if (!base) { |
|
|
cout << "event_base_new_with_config failed!" << endl; |
|
|
cout << "event_base_new_with_config failed!" << endl; |
|
|
|
|
|
base = event_base_new(); |
|
|
|
|
|
if (!base) { |
|
|
|
|
|
cerr << "event_base_new failed" << endl; |
|
|
|
|
|
return 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
//确认特征是否生效
|
|
|
//确认特征是否生效
|
|
|