Home
last modified time | relevance | path

Searched refs:MsgHeader (Results 1 – 5 of 5) sorted by relevance

/base/hiviewdfx/hilog/services/hilogd/include/
Dservice_controller.h51 int GetMsgHeader(MsgHeader& hdr);
52 int GetRqst(const MsgHeader& hdr, char* rqst, int expectedLen);
56 void RequestHandler(const MsgHeader& hdr, std::function<void(const T& rqst)> handle);
100 void ServiceController::RequestHandler(const MsgHeader& hdr, std::function<void(const T& rqst)> han… in RequestHandler()
/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/include/
Dlog_ioctl.h50 int ReceiveMsgHeaer(MsgHeader& hdr);
79 MsgHeader hdr = { 0 }; in RequestMsgHead()
/base/hiviewdfx/hilog/services/hilogd/
Dservice_controller.cpp83 int ServiceController::GetMsgHeader(MsgHeader& hdr) in GetMsgHeader()
89 int ret = m_communicationSocket->Read(reinterpret_cast<char *>(&hdr), sizeof(MsgHeader)); in GetMsgHeader()
90 if (ret < static_cast<int>(sizeof(MsgHeader))) { in GetMsgHeader()
97 int ServiceController::GetRqst(const MsgHeader& hdr, char* rqst, int expectedLen) in GetRqst()
113 MsgHeader header = {MSG_VER, static_cast<uint8_t>(cmd), 0, static_cast<uint16_t>(len)}; in WriteRspHeader()
114 (void)m_communicationSocket->Write(reinterpret_cast<char*>(&header), sizeof(MsgHeader)); in WriteRspHeader()
120 MsgHeader header = {MSG_VER, static_cast<uint8_t>(IoctlCmd::RSP_ERROR), code, 0}; in WriteErrorRsp()
121 (void)m_communicationSocket->Write(reinterpret_cast<char*>(&header), sizeof(MsgHeader)); in WriteErrorRsp()
806 MsgHeader hdr; in CommunicationLoop()
/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/
Dlog_ioctl.cpp43 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/frameworks/libhilog/include/
Dhilog_cmd.h63 struct MsgHeader { struct