[AGENT++]how to send a trap?
Jerry OELoo
oyljerry at hotmail.com
Wed Jul 28 10:18:35 CEST 2004
hi all
I have sent a notification with code as shown below:
coldStartOid coldOid;
NotificationOriginator no;
UdpAddress dest("127.0.0.1/162");
no.add_v1_trap_destination(dest);
no.generate(vbs, 0, coldOid, "", "");
but when i run the program,it crashes and shows :0xC0000005: Access
Violation.
I want to know why? and I have found something in the maillist:
Frank Fock recommend to use theMib::notify method.
but as this method ,how do I configure the manager' address and port ?
Thanks in advance!
Jerry
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
More information about the AGENTPP
mailing list