diff options
Diffstat (limited to 'ACE/ASNMP/examples')
-rw-r--r-- | ACE/ASNMP/examples/get/get.cpp | 4 | ||||
-rw-r--r-- | ACE/ASNMP/examples/get/get_async.cpp | 7 | ||||
-rw-r--r-- | ACE/ASNMP/examples/next/next.cpp | 7 | ||||
-rw-r--r-- | ACE/ASNMP/examples/set/set.cpp | 4 | ||||
-rw-r--r-- | ACE/ASNMP/examples/trap/trap.cpp | 4 | ||||
-rw-r--r-- | ACE/ASNMP/examples/walk/walk.cpp | 6 |
6 files changed, 17 insertions, 15 deletions
diff --git a/ACE/ASNMP/examples/get/get.cpp b/ACE/ASNMP/examples/get/get.cpp index 4ff1631196b..31a82061732 100644 --- a/ACE/ASNMP/examples/get/get.cpp +++ b/ACE/ASNMP/examples/get/get.cpp @@ -36,13 +36,13 @@ // SNMPv1 Get Application // class getapp { - public: +public: getapp(int argc, char **argv); // process command line args int valid() const; // verify transaction can proceed int run(); // issue transaction static void usage(); // operator help message - private: +private: getapp(const getapp&); UdpAddress address_; diff --git a/ACE/ASNMP/examples/get/get_async.cpp b/ACE/ASNMP/examples/get/get_async.cpp index cccc0e21123..0734bfddb6c 100644 --- a/ACE/ASNMP/examples/get/get_async.cpp +++ b/ACE/ASNMP/examples/get/get_async.cpp @@ -32,8 +32,9 @@ #include "ace/streams.h" // SNMPv1 Get Application -class getapp : public Snmp_Result { - public: +class getapp : public Snmp_Result +{ +public: getapp(int argc, char **argv); // process command line args int valid() const; // verify transaction can proceed int run(); // issue transaction @@ -41,7 +42,7 @@ class getapp : public Snmp_Result { virtual void result(Snmp * r, int rc); - private: +private: getapp(const getapp&); UdpAddress address_; diff --git a/ACE/ASNMP/examples/next/next.cpp b/ACE/ASNMP/examples/next/next.cpp index 999a6883cf6..cfff517c43e 100644 --- a/ACE/ASNMP/examples/next/next.cpp +++ b/ACE/ASNMP/examples/next/next.cpp @@ -34,14 +34,15 @@ // // SNMPv1 Get Next Application // -class nextapp { - public: +class nextapp +{ +public: nextapp(int argc, char **argv); // process command line args int valid() const; // verify transaction can proceed int run(); // issue transaction static void usage(); // operator help message - private: +private: nextapp(const nextapp&); UdpAddress address_; diff --git a/ACE/ASNMP/examples/set/set.cpp b/ACE/ASNMP/examples/set/set.cpp index d2ba783f0c2..f5191b2b807 100644 --- a/ACE/ASNMP/examples/set/set.cpp +++ b/ACE/ASNMP/examples/set/set.cpp @@ -35,13 +35,13 @@ // SNMPv1 Set Application // class set { - public: +public: set(int argc, char **argv); // process command line args int valid() const; // verify transaction can proceed int run(); // issue transaction static void usage(); // operator help message - private: +private: set(const set&); UdpAddress address_; diff --git a/ACE/ASNMP/examples/trap/trap.cpp b/ACE/ASNMP/examples/trap/trap.cpp index c8ba41bd77a..db841ee5889 100644 --- a/ACE/ASNMP/examples/trap/trap.cpp +++ b/ACE/ASNMP/examples/trap/trap.cpp @@ -37,13 +37,13 @@ // SNMPv1 Trap Application // class trapapp { - public: +public: trapapp(int argc, char **argv); // process command line args int valid() const; // verify transaction can proceed int run(); // issue transaction static void usage(); // operator help message - private: +private: trapapp(const trapapp&); UdpAddress address_; diff --git a/ACE/ASNMP/examples/walk/walk.cpp b/ACE/ASNMP/examples/walk/walk.cpp index 8215fe70a34..f634f364ba8 100644 --- a/ACE/ASNMP/examples/walk/walk.cpp +++ b/ACE/ASNMP/examples/walk/walk.cpp @@ -34,13 +34,13 @@ // SNMPv1 Walk Mib Application // class walkapp { - public: +public: walkapp(int argc, char **argv); // process command line args int valid() const; // verify transaction can proceed int run(); // issue transaction static void usage(); // operator help message - private: +private: walkapp(const walkapp&); UdpAddress address_; @@ -141,7 +141,7 @@ void walkapp::usage() // simple mib iterator class // class MibIter { - public: +public: // Pdu must contain initial oid to begin with MibIter(Snmp *snmp, Pdu& pdu, UdpTarget* target); int next(Vb& vb, char *&err_reason); // return next oid in mib |