libevent测试本地系统支持的io多路复用的方法

  #include <stdio.h>
  #include <event.h>
  
  int main()
  {
     char** methods = event_get_supported_methods();
      int i = 0;
      for (i = 0; methods[i]!=NULL; ++i) {
          printf("%s\n",methods[i]);                                                                                                                                     
      }   
      return 0;
  }

gcc xxxx.c -o aaaa -levent

posted on 2021-05-23 15:33  lodger47  阅读(63)  评论(0)    收藏  举报

导航