about source code

Mark Andrews marka at isc.org
Wed Feb 15 08:57:42 UTC 2017


Different platforms have different structure contents.

lib/isc/unix/socket.c  (has nevents)
lib/isc/win32/socket.c (doesn't have nevents)

Mark

In message <SG2PR06MB0457CF8DE40943DC1BCDE069A45B0 at SG2PR06MB0457.apcprd06.prod.
outlook.com>, Yao HEALTH writes:
> Hello,
>  
> In Socket.c, there are many "manager->nevents" 
> for an example, manager->nevents = ISC_SOCKET_MAXEVENTS; 
>  
> but the manager is defined in "isc_socketmgr_t *manager "
>  
> typedef struct isc_socketmgr isc_socketmgr_t; /*%< Socket Manager */ 
>  
> struct isc_socketmgr {
> /* Not locked. */
> unsigned int magic;
> isc_mem_t        *mctx;
> isc_mutex_t lock;
> /* Locked by manager lock. */
> ISC_LIST(isc_socket_t) socklist;
> isc_boolean_t bShutdown;
> isc_condition_t shutdown_ok;
> HANDLE hIoCompletionPort;
> int maxIOCPThreads;
> HANDLE hIOCPThreads[MAX_IOCPTHREADS];
> DWORD dwIOCPThreadIds[MAX_IOCPTHREADS];
>  
> /*
>  * Debugging.
>  * Modified by InterlockedIncrement() and InterlockedDecrement()
>  */
> LONG totalSockets;
> LONG iocp_total;
> };
>  
> my question is that there seems no definition of "nevents" in the struct of i
> sc_socketmgr, where is "nevents"  when we use "manager->nevents"?
>  
> Can some expert kindly help where I miss?
>  
> thanks a lot.
>  
> Jiankang Yao
>  
>  
>  
>  
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe
>  from this list
> 
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org


More information about the bind-users mailing list