On Wed, 25 Aug 2004 17:03:40 +0100 Pedro wrote: PN> On Wed, 2004-08-25 at 02:44, Robert Story wrote: PN> > Most of the udp code would be in snmplib/snmpUDPDomain.c. PN> PN> I have seen the snmplib/snmpUDPDomain.c file. In fact, the PN> netsnmp_udp_transport(...) function in snmplib/snmpUDPDomain.c creates PN> the socket. However, this function is not called in the snmp_open(...) PN> function in snmplib/snmp_api.c. My question is how does the PN> snmp_open(....) function is able to open the socket if it does not call PN> the netsnmp_udp_transport(...) ???
You'd have to follow the code flow to find out exactly, but it goes something like this: - peername is examined for transport identifiers (like udp, tcp, etc) - if one is found the hander for that tranport is called to create the socket - if none is found, the default transport is used (udp) -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users