summaryrefslogtreecommitdiff
path: root/ASNMP/examples
diff options
context:
space:
mode:
authordhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-08-23 19:32:56 +0000
committerdhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-08-23 19:32:56 +0000
commitaf25bc2adbe0b12a8f3d69f2f7c4eb74c33fdc98 (patch)
tree6455ca211b56bf9cfe82617063639fc27b8a9667 /ASNMP/examples
parentc189604325ad07eb2ccbb0a5c60f3a54984e1d6c (diff)
downloadATCD-af25bc2adbe0b12a8f3d69f2f7c4eb74c33fdc98.tar.gz
ChangeLogTag:Sat Aug 23 19:26:41 UTC 2003 Don Hinton <dhinton@dresystems.com>
Diffstat (limited to 'ASNMP/examples')
-rw-r--r--ASNMP/examples/examples.mwc4
-rw-r--r--ASNMP/examples/get/get.cpp1
-rw-r--r--ASNMP/examples/get/get.mpc21
-rw-r--r--ASNMP/examples/get/get_async.cpp1
-rw-r--r--ASNMP/examples/next/next.cpp1
-rw-r--r--ASNMP/examples/next/next.mpc12
-rw-r--r--ASNMP/examples/set/set.cpp2
-rw-r--r--ASNMP/examples/set/set.mpc12
-rw-r--r--ASNMP/examples/trap/trap.cpp1
-rw-r--r--ASNMP/examples/trap/trap.mpc11
-rw-r--r--ASNMP/examples/walk/walk.cpp1
-rw-r--r--ASNMP/examples/walk/walk.mpc11
12 files changed, 78 insertions, 0 deletions
diff --git a/ASNMP/examples/examples.mwc b/ASNMP/examples/examples.mwc
new file mode 100644
index 00000000000..fcf95d10967
--- /dev/null
+++ b/ASNMP/examples/examples.mwc
@@ -0,0 +1,4 @@
+// $Id$
+
+workspace {
+}
diff --git a/ASNMP/examples/get/get.cpp b/ASNMP/examples/get/get.cpp
index 5c05bd5eac5..7cde6bb919c 100644
--- a/ASNMP/examples/get/get.cpp
+++ b/ASNMP/examples/get/get.cpp
@@ -36,6 +36,7 @@
#include "asnmp/snmp.h"
#include "ace/Get_Opt.h"
+#include "ace/streams.h"
ACE_RCSID(get, get, "$Id$")
diff --git a/ASNMP/examples/get/get.mpc b/ASNMP/examples/get/get.mpc
new file mode 100644
index 00000000000..e8f70bc3201
--- /dev/null
+++ b/ASNMP/examples/get/get.mpc
@@ -0,0 +1,21 @@
+// $Id$
+
+project (asnmp_example_get) : aceexe {
+ exename = get
+ after += asnmp_lib
+ libs += asnmp
+ includes += $(ACE_ROOT)/ASNMP
+ source_files {
+ get
+ }
+}
+
+project (asnmp_example_get_async) : aceexe {
+ exename = get_async
+ after += asnmp_lib
+ libs += asnmp
+ includes += $(ACE_ROOT)/ASNMP
+ source_files {
+ get_async
+ }
+}
diff --git a/ASNMP/examples/get/get_async.cpp b/ASNMP/examples/get/get_async.cpp
index 1c699a331cd..ad670b6f9c6 100644
--- a/ASNMP/examples/get/get_async.cpp
+++ b/ASNMP/examples/get/get_async.cpp
@@ -34,6 +34,7 @@
#include "asnmp/snmp.h"
#include "ace/Get_Opt.h"
+#include "ace/streams.h"
ACE_RCSID(get, get_async, "$Id$")
diff --git a/ASNMP/examples/next/next.cpp b/ASNMP/examples/next/next.cpp
index 44322eb0a00..39714628aca 100644
--- a/ASNMP/examples/next/next.cpp
+++ b/ASNMP/examples/next/next.cpp
@@ -35,6 +35,7 @@
#include "asnmp/snmp.h"
#include "ace/Get_Opt.h"
+#include "ace/streams.h"
ACE_RCSID(next, next, "$Id$")
diff --git a/ASNMP/examples/next/next.mpc b/ASNMP/examples/next/next.mpc
new file mode 100644
index 00000000000..9a9b9616566
--- /dev/null
+++ b/ASNMP/examples/next/next.mpc
@@ -0,0 +1,12 @@
+// $Id$
+
+project (asnmp_example_next) : aceexe {
+ exename = next
+ after += asnmp_lib
+ libs += asnmp
+ includes += $(ACE_ROOT)/ASNMP
+ source_files {
+ next
+ }
+}
+
diff --git a/ASNMP/examples/set/set.cpp b/ASNMP/examples/set/set.cpp
index ebbd022d6d4..bb796fddefd 100644
--- a/ASNMP/examples/set/set.cpp
+++ b/ASNMP/examples/set/set.cpp
@@ -35,6 +35,7 @@
#include "asnmp/snmp.h"
#include "ace/Get_Opt.h"
+#include "ace/streams.h"
ACE_RCSID(set, set, "$Id$")
@@ -72,6 +73,7 @@ int main( int argc, char *argv[])
return 1;
}
+int
set::valid() const
{
return valid_;
diff --git a/ASNMP/examples/set/set.mpc b/ASNMP/examples/set/set.mpc
new file mode 100644
index 00000000000..53695f890db
--- /dev/null
+++ b/ASNMP/examples/set/set.mpc
@@ -0,0 +1,12 @@
+// $Id$
+
+project (asnmp_example_set) : aceexe {
+ exename = set
+ after += asnmp_lib
+ libs += asnmp
+ includes += $(ACE_ROOT)/ASNMP
+ source_files {
+ set
+ }
+}
+
diff --git a/ASNMP/examples/trap/trap.cpp b/ASNMP/examples/trap/trap.cpp
index e0609e03485..4c2d0e32f11 100644
--- a/ASNMP/examples/trap/trap.cpp
+++ b/ASNMP/examples/trap/trap.cpp
@@ -37,6 +37,7 @@
#define DEFINE_TRAP_CONSTANTS_
#include "asnmp/enttraps.h" // enterprise standard traps
#include "ace/Get_Opt.h"
+#include "ace/streams.h"
ACE_RCSID(trap, trap, "$Id$")
diff --git a/ASNMP/examples/trap/trap.mpc b/ASNMP/examples/trap/trap.mpc
new file mode 100644
index 00000000000..97ac84fee30
--- /dev/null
+++ b/ASNMP/examples/trap/trap.mpc
@@ -0,0 +1,11 @@
+// $Id$
+
+project (asnmp_example_trap) : aceexe {
+ exename = trap
+ after += asnmp_lib
+ libs += asnmp
+ includes += $(ACE_ROOT)/ASNMP
+ source_files {
+ trap
+ }
+}
diff --git a/ASNMP/examples/walk/walk.cpp b/ASNMP/examples/walk/walk.cpp
index 80f719acf26..620783484f2 100644
--- a/ASNMP/examples/walk/walk.cpp
+++ b/ASNMP/examples/walk/walk.cpp
@@ -35,6 +35,7 @@
#include "asnmp/snmp.h"
#include "ace/Get_Opt.h"
+#include "ace/streams.h"
ACE_RCSID(walk, walk, "$Id$")
diff --git a/ASNMP/examples/walk/walk.mpc b/ASNMP/examples/walk/walk.mpc
new file mode 100644
index 00000000000..15b21aa0466
--- /dev/null
+++ b/ASNMP/examples/walk/walk.mpc
@@ -0,0 +1,11 @@
+// $Id$
+
+project (asnmp_example_walk) : aceexe {
+ exename = walk
+ after += asnmp_lib
+ libs += asnmp
+ includes += $(ACE_ROOT)/ASNMP
+ source_files {
+ walk
+ }
+}