Ver Fonte

union MHD_DaemonInfo: added epoll_fd to clearly use with epoll FD

Evgeny Grin (Karlson2k) há 9 anos atrás
pai
commit
6bd7866d21
1 ficheiros alterados com 6 adições e 2 exclusões
  1. 6 2
      src/include/microhttpd.h

+ 6 - 2
src/include/microhttpd.h

@@ -3171,11 +3171,15 @@ union MHD_DaemonInfo
   size_t mac_key_size;
 
   /**
-   * Socket, returned for #MHD_DAEMON_INFO_EPOLL_FD
-   * and #MHD_DAEMON_INFO_LISTEN_FD.
+   * Socket, returned for #MHD_DAEMON_INFO_LISTEN_FD.
    */
   MHD_socket listen_fd;
 
+  /**
+   * epoll FD, returned for #MHD_DAEMON_INFO_EPOLL_FD.
+   */
+  int epoll_fd;
+
   /**
    * Number of active connections, for #MHD_DAEMON_INFO_CURRENT_CONNECTIONS.
    */