diff options
Diffstat (limited to 'src/stateless/cp/trex_stateless.h')
-rw-r--r-- | src/stateless/cp/trex_stateless.h | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/src/stateless/cp/trex_stateless.h b/src/stateless/cp/trex_stateless.h index 3a1a2c24..33f16ce9 100644 --- a/src/stateless/cp/trex_stateless.h +++ b/src/stateless/cp/trex_stateless.h @@ -102,6 +102,7 @@ public: * defines the TRex stateless operation mode * */ +class CaptureFilter; class TrexStateless { public: @@ -132,32 +133,21 @@ public: /** - * shutdown the server - */ - void shutdown(); - - /** - * fetch xstats names (keys of dict) - * - */ - void encode_xstats_names(Json::Value &global); - - /** - * fetch xstats values - * + * starts a capture on a 'filter' of ports + * with a limit of packets */ - void encode_xstats_values(Json::Value &global); - + capture_id_t start_capture(const CaptureFilter &filter, uint64_t limit); + /** - * fetch all the stats + * stops an active capture * */ - void encode_stats(Json::Value &global); - + capture_id_t stop_capture(capture_id_t capture_id); + /** - * generate a snapshot for publish + * shutdown the server */ - void generate_publish_snapshot(std::string &snapshot); + void shutdown(); const TrexPlatformApi * get_platform_api() { return (m_platform_api); |