diff options
-rw-r--r-- | cpp/slice/Ice/Stats.ice | 58 | ||||
-rw-r--r-- | cpp/slice/Ice/StatsF.ice | 25 |
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 |