[AGENT++] registeration of Sub agent to Master

Henning Eggers henning.eggers at plath.de
Tue Nov 18 08:52:12 CET 2003


Is the master agent listening on the network at all? If it is NOT running on
a Win32-System it will not do that by default. Look at the code from the the
example master and check if your defines are correct to enable TCP
connections.

#ifdef AX_UNIX_SOCKET
#ifndef WIN32
 agentx->set_connect_mode(AX_USE_UNIX_SOCKET /*| AX_USE_TCP_SOCKET*/);
#else
 agentx->set_connect_mode(AX_USE_TCP_SOCKET);
#endif
 agentx->set_unix_port_loc("/var/agentx/");
#else
 agentx->set_connect_mode(AX_USE_TCP_SOCKET);
#endif

Regards,
Henning





More information about the AGENTPP mailing list