summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-01-30 22:09:29 +0000
committerMarc Laukien <marc@zeroc.com>2003-01-30 22:09:29 +0000
commitc93b38e89b119c9a7bdfbe6ba12d277df48dc74e (patch)
treed6d87b1d2ff5d280bec3b9cdb2de01af52cfa392 /cpp
parentstats (diff)
downloadice-c93b38e89b119c9a7bdfbe6ba12d277df48dc74e.tar.bz2
ice-c93b38e89b119c9a7bdfbe6ba12d277df48dc74e.tar.xz
ice-c93b38e89b119c9a7bdfbe6ba12d277df48dc74e.zip
compression cleanup
Diffstat (limited to 'cpp')
-rw-r--r--cpp/slice/Ice/Stats.ice58
-rw-r--r--cpp/slice/Ice/StatsF.ice25
2 files changed, 83 insertions, 0 deletions
diff --git a/cpp/slice/Ice/Stats.ice b/cpp/slice/Ice/Stats.ice
new file mode 100644
index 00000000000..5856e2c23bb
--- /dev/null
+++ b/cpp/slice/Ice/Stats.ice
@@ -0,0 +1,58 @@
+// **********************************************************************
+//
+// Copyright (c) 2002
+// ZeroC, Inc.
+// Billerica, MA, USA
+//
+// All Rights Reserved.
+//
+// Ice is free software; you can redistribute it and/or modify it under
+// the terms of the GNU General Public License version 2 as published by
+// the Free Software Foundation.
+//
+// **********************************************************************
+
+#ifndef ICE_STATS_ICE
+#define ICE_STATS_ICE
+
+module Ice
+{
+
+/**
+ *
+ * An interface &Ice; uses to report statistics, such as how much data
+ * is sent or received. Applications must provide their own [Stats]
+ * by implementing this interface and installing it with with a
+ * communicator.
+ *
+ **/
+local interface Stats
+{
+ /**
+ *
+ * Callback to report that data has been sent.
+ *
+ * @param protocol The protocol over which data has been sent (for
+ * example "tcp", "udp", or "ssl").
+ *
+ * @param num How many bytes have been sent.
+ *
+ **/
+ void bytesSent(string protocol, int num);
+
+ /**
+ *
+ * Callback to report that data has been received.
+ *
+ * @param protocol The protocol over which data has been received
+ * (for example "tcp", "udp", or "ssl").
+ *
+ * @param num How many bytes have been received.
+ *
+ **/
+ void bytesReceived(string protocol, int num);
+};
+
+};
+
+#endif
diff --git a/cpp/slice/Ice/StatsF.ice b/cpp/slice/Ice/StatsF.ice
new file mode 100644
index 00000000000..2a0e1eb4ace
--- /dev/null
+++ b/cpp/slice/Ice/StatsF.ice
@@ -0,0 +1,25 @@
+// **********************************************************************
+//
+// Copyright (c) 2002
+// ZeroC, Inc.
+// Billerica, MA, USA
+//
+// All Rights Reserved.
+//
+// Ice is free software; you can redistribute it and/or modify it under
+// the terms of the GNU General Public License version 2 as published by
+// the Free Software Foundation.
+//
+// **********************************************************************
+
+#ifndef ICE_STATS_F_ICE
+#define ICE_STATS_F_ICE
+
+module Ice
+{
+
+local interface Stats;
+
+};
+
+#endif