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 <sg2pr06mb0457cf8de40943dc1bcde069a4...@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@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: ma...@isc.org _______________________________________________ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users