40 Command( LogServerTypes::Command c,
unsigned int d,
const std::string& f =
"" ): cmd(c), data(d), logfilter(f) {}
42 LogServerTypes::Command cmd = { LogServerTypes::cmdNOP };
43 unsigned int data = {0};
44 std::string logfilter = {
"" };
47 void sendCommand(
const std::string& addr,
int port,
48 std::vector<Command>& vcmd,
bool cmd_only =
true,
49 bool verbose =
false );
51 void readlogs(
const std::string& addr,
int port, LogServerTypes::Command c = LogServerTypes::cmdNOP,
const std::string logfilter =
"",
bool verbose =
false );
53 bool isConnection()
const;
55 void setReadCount(
size_t n );
56 void setCommandOnlyMode(
bool s );
58 void setinTimeout( timeout_t msec );
59 void setoutTimeout( timeout_t msec );
60 void setReconnectDelay( timeout_t msec );
61 void setTextFilter(
const std::string& f );
63 DebugStream::StreamEvent_Signal signal_stream_event();
65 void setLogLevel( Debug::type t );
67 std::shared_ptr<DebugStream> log();
73 void logOnEvent(
const std::string& s );
76 timeout_t inTimeout = { 10000 };
77 timeout_t outTimeout = { 6000 };
78 timeout_t reconDelay = { 5000 };
81 std::shared_ptr<UTCPStream> tcp;
82 std::string iaddr = {
"" };
84 bool cmdonly {
false };
85 size_t readcount = { 0 };
86 std::string textfilter = {
"" };
89 std::shared_ptr<DebugStream> outlog;
91 DebugStream::StreamEvent_Signal m_logsig;