From a1d6ad16ddc95e57fedf3b879e766d883425e99b Mon Sep 17 00:00:00 2001 From: panyufeng <3043130461@qq.com> Date: Tue, 8 Jun 2021 22:42:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_conf/test_conf.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test_conf/test_conf.cpp b/test_conf/test_conf.cpp index ce5c8b0..f4df135 100644 --- a/test_conf/test_conf.cpp +++ b/test_conf/test_conf.cpp @@ -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) {