17 #ifndef LogServerTypes_H_ 18 #define LogServerTypes_H_ 27 namespace LogServerTypes
29 const uint32_t MAGICNUM = 20201222;
47 cmdViewDefaultLogLevel
51 std::ostream& operator<<(std::ostream& os, Command c );
56 explicit lsMessage( Command c, uint32_t d,
const std::string& logname );
63 static const size_t MAXLOGNAME = 120;
64 char logname[MAXLOGNAME + 1];
66 void setLogName(
const std::string& name );
67 void convertFromNet() noexcept;
72 } __attribute__((packed));
74 std::ostream& operator<<(std::ostream& os,
const lsMessage& m );
84 std::vector<lsMessage> getCommands(
const std::string& cmd );
89 #endif // LogServerTypes_H_ Definition: CommonEventLoop.h:14
Definition: LogServerTypes.h:53