On Wed, 2013-06-05 at 21:11 +0800, wenpinghuajxust wrote: > hello net-snmp-coders: > I am studying net-snmp recently, and I found that when we get > information form a lots of agents it use select(). > I am developing a NMS(network management system), not > Agent(snmpd). > and it is use asynchronous. > you can see it > from: http://www.net-snmp.org/tutorial/tutorial-5/toolkit/asyncapp/asyncapp.c > > > snmp_select_info(&fds, &fdset, &timeout, &block); > fds = select(fds, &fdset, NULL, NULL, block ? NULL : &timeout); > > why not use epoll() ins! tead of select()?
Because epoll is nonportable whereas select exist on every posix platform in existance and then some. /MF ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders