version 1.2, 2001/12/13 14:54:23
|
version 1.5, 2002/06/01 00:57:11
|
|
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001 BMC Software, Hewlett Packard, IBM, The Open Group, |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
// Tivoli Systems |
// The Open Group, Tivoli Systems |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
#include "sr_conf.h" |
|
#include <stdio.h> |
|
#include <stdarg.h> |
|
#include <unistd.h> |
|
#include <fcntl.h> |
|
#include <string.h> |
|
#include <stdlib.h> |
|
|
|
#include <sys/types.h> |
|
#include <sys/sem.h> |
|
#include <sys/stat.h> |
|
#include <sys/param.h> |
|
|
|
#include <signal.h> |
|
#include <netinet/in.h> |
|
#include <sys/socket.h> |
|
#include <arpa/inet.h> |
|
#include <netdb.h> |
|
#include <errno.h> |
|
|
|
#include "sr_snmp.h" |
|
#include "comunity.h" |
|
#include "v2clssc.h" |
|
#include "sr_trans.h" |
|
#include "context.h" |
|
#include "method.h" |
|
#include "diag.h" |
|
#include "subagent.h" |
|
#include "agentsoc.h" |
|
#include "evq.h" |
|
#include "sig.h" |
|
|
#include <iostream> | #include <iostream> |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
| |
|
|
class snmpDeliverTrap_emanate : public snmpDeliverTrap | class snmpDeliverTrap_emanate : public snmpDeliverTrap |
{ | { |
public: | public: |
|
|
|
snmpDeliverTrap_emanate(); |
|
|
|
~snmpDeliverTrap_emanate(); |
|
|
|
void initialize(); |
|
|
void deliverTrap( | void deliverTrap( |
const String& trapOid, | const String& trapOid, |
const String& enterprise, |
const String& community, |
const String& destination, | const String& destination, |
const String& trapType, | const String& trapType, |
Array<String>& vbOids, | Array<String>& vbOids, |