Simplify command (no parameter field, all inside command). Interactive mode.
[anna.git] / example / diameter / batchConverter / main.cpp
index f909d89..0e7eff4 100644 (file)
@@ -70,7 +70,7 @@ void _exit(const std::string &message, int resultCode = 1) {
 // Decodes a diameter message coming from a datablock
 void decodeDataBlock(const anna::DataBlock &db/*, unsigned int & detectedApplicationId*/) throw() {
   try {
-    G_codecMsg.clear(); // perhaps we will need another codec engine ...
+    G_codecMsg.setEngine(NULL); // perhaps we will need another codec engine ...
     G_codecMsg.decode(db);
   } catch(RuntimeException &ex) {
     _exit(ex.asString());