Searched refs:hdr (Results 1 – 7 of 7) sorted by relevance
/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/include/ |
D | log_ioctl.h | 50 int ReceiveMsgHeaer(MsgHeader& hdr); 79 MsgHeader hdr = { 0 }; in RequestMsgHead() local 80 ret = ReceiveMsgHeaer(hdr); in RequestMsgHead() 84 if (hdr.cmd == static_cast<uint8_t>(IoctlCmd::RSP_ERROR)) { in RequestMsgHead() 85 return hdr.err; in RequestMsgHead() 87 if (hdr.cmd != static_cast<uint8_t>(rspCmd)) { in RequestMsgHead() 90 if (hdr.len != sizeof(T2)) { in RequestMsgHead()
|
/base/hiviewdfx/hilog/services/hilogd/include/ |
D | service_controller.h | 51 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() argument 102 std::vector<char> buffer(hdr.len, 0); in RequestHandler() 104 int ret = GetRqst(hdr, data, sizeof(T)); in RequestHandler()
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | service_controller.cpp | 84 int ServiceController::GetMsgHeader(MsgHeader& hdr) in GetMsgHeader() argument 90 int ret = m_communicationSocket->Read(reinterpret_cast<char *>(&hdr), sizeof(MsgHeader)); in GetMsgHeader() 98 int ServiceController::GetRqst(const MsgHeader& hdr, char* rqst, int expectedLen) in GetRqst() argument 100 if (hdr.len != expectedLen) { in GetRqst() 101 … std::cout << "Invalid MsgHeader! hdr.len:" << hdr.len << ", expectedLen:" << expectedLen << endl; in GetRqst() 104 int ret = m_communicationSocket->Read(rqst, hdr.len); in GetRqst() 807 MsgHeader hdr; in CommunicationLoop() local 808 int ret = GetMsgHeader(hdr); in CommunicationLoop() 812 IoctlCmd cmd = static_cast<IoctlCmd>(hdr.cmd); in CommunicationLoop() 821 RequestHandler<OutputRqst>(hdr, [this](const OutputRqst& rqst) { in CommunicationLoop() [all …]
|
/base/hiviewdfx/hilog/frameworks/libhilog/socket/ |
D | socket_server.cpp | 78 int SocketServer::RecvMsg(struct msghdr *hdr, int flags) in RecvMsg() argument 80 return TEMP_FAILURE_RETRY(recvmsg(socketHandler, hdr, flags)); in RecvMsg()
|
/base/hiviewdfx/hilog/frameworks/libhilog/socket/include/ |
D | socket_server.h | 37 int RecvMsg(struct msghdr *hdr, int flags = 0);
|
/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/ |
D | log_ioctl.cpp | 55 int LogIoctl::ReceiveMsgHeaer(MsgHeader& hdr) in ReceiveMsgHeaer() argument 57 int ret = socket.RecvMsg(reinterpret_cast<char *>(&hdr), sizeof(hdr)); in ReceiveMsgHeaer()
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/test/unittest/src/ |
D | dlp_fuse_test.cpp | 896 uint32_t* hdr = reinterpret_cast<uint32_t*>(readBuf); variable 897 ASSERT_EQ(static_cast<int>(hdr[off / sizeof(uint32_t)]), 4);
|