Searched refs:MsgHeader (Results 1 - 5 of 5) sorted by relevance
/base/hiviewdfx/hilog/services/hilogd/include/ |
H A D | service_controller.h | 52 int GetMsgHeader(MsgHeader& hdr); 53 int GetRqst(const MsgHeader& hdr, char* rqst, int expectedLen); 57 void RequestHandler(const MsgHeader& hdr, std::function<void(const T& rqst)> handle); 104 void ServiceController::RequestHandler(const MsgHeader& hdr, std::function<void(const T& rqst)> handle) in RequestHandler()
|
/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/include/ |
H A D | log_ioctl.h | 50 int ReceiveMsgHeaer(MsgHeader& hdr);
79 MsgHeader hdr = { 0 };
in RequestMsgHead()
|
/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/ |
H A D | log_ioctl.cpp | 43 MsgHeader header = {MSG_VER, static_cast<uint8_t>(cmd), 0, static_cast<uint16_t>(len)};
in SendMsgHeader() 47 int ret = socket.WriteAll(reinterpret_cast<char*>(&header), sizeof(MsgHeader));
in SendMsgHeader() 55 int LogIoctl::ReceiveMsgHeaer(MsgHeader& hdr)
in ReceiveMsgHeaer()
|
/base/hiviewdfx/hilog/services/hilogd/ |
H A D | service_controller.cpp | 96 int ServiceController::GetMsgHeader(MsgHeader& hdr) in GetMsgHeader() 102 int ret = m_communicationSocket->Read(reinterpret_cast<char *>(&hdr), sizeof(MsgHeader)); in GetMsgHeader() 103 if (ret < static_cast<int>(sizeof(MsgHeader))) { in GetMsgHeader() 104 std::cerr << "Read MsgHeader error!" << std::endl; in GetMsgHeader() 110 int ServiceController::GetRqst(const MsgHeader& hdr, char* rqst, int expectedLen) in GetRqst() 113 std::cout << "Invalid MsgHeader! hdr.len:" << hdr.len << ", expectedLen:" << expectedLen << endl; in GetRqst() 126 MsgHeader header = {MSG_VER, static_cast<uint8_t>(cmd), 0, static_cast<uint16_t>(len)}; in WriteRspHeader() 127 (void)m_communicationSocket->Write(reinterpret_cast<char*>(&header), sizeof(MsgHeader)); in WriteRspHeader() 133 MsgHeader header = {MSG_VER, static_cast<uint8_t>(IoctlCmd::RSP_ERROR), code, 0}; in WriteErrorRsp() 134 (void)m_communicationSocket->Write(reinterpret_cast<char*>(&header), sizeof(MsgHeader)); in WriteErrorRsp() [all...] |
/base/hiviewdfx/hilog/frameworks/libhilog/include/ |
H A D | hilog_cmd.h | 67 struct MsgHeader { struct
|
Completed in 4 milliseconds