Anyone been able to listen and process from two ports

Frank Fock Frank.Fock____t-online.de
Thu Jul 6 23:25:57 CEST 2000


Steve Eastham wrote:

> I need to be able to write a trapd binary that can listen and process from
> two seperate trap reception ports simultaneously. Is this possible with
> SNMP++/Agent++?

Yes, but you have to change the static method set_listen_port and
get_listen_port as well as the static member m_listen_port of the
class CNotifyEventQueue from notifyqueue.cpp/.h to non-static.
So you can use different ports with different instances of
CNotifyEventQueue.

Hope that helps.

Best regards,
Frank




More information about the AGENTPP mailing list