use result_t, move raw logging and dumping to Port and avoid permanent open/close on ofstream

This commit is contained in:
john30
2014-11-29 20:16:16 +01:00
parent ab3508c187
commit 9affddf19b
2 changed files with 2 additions and 2 deletions
Regular → Executable
View File
+2 -2
View File
@@ -23,7 +23,7 @@
#include "appl.h"
#include "port.h"
#include "decode.h"
#include "data.h"
#include "tcpsocket.h"
#include <iostream>
#include <fstream>
@@ -69,7 +69,7 @@ int main(int argc, char* argv[])
if (strcasecmp(A.getArg(0).c_str(), "feed") == 0) {
string dev(A.getOptVal<const char*>("device"));
Port port(dev, true);
Port port(dev, true, false, NULL, false, "", 1);
port.open();
if(port.isOpen() == true) {