On Mon, 15 Nov 2004 16:39:31 +0200 Arye wrote:
AS> I'm trying to extend the agent, by using a dynamically loaded SO.
AS>  
AS> The init_plugin() function calls c++ functions that are compiled with
AS> extern "C". And in turn, the c++ functions try to connect by TCP to get the
AS> info for the SNMP query.
AS>  
AS> The problem is that the TCP connection always fails, but if I make a
AS> simple executable that uses the SO, it works fine.

This won't ever work, since the agent is single threaded. When you try to make
the connection, you block the agent, so it can't accept the incoming
connections. Try using UDP instead of TCP.

-- 
Robert Story; NET-SNMP Junkie
Support: <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. 


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
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

Reply via email to