Home
last modified time | relevance | path

Searched refs:SocketSession (Results 1 - 7 of 7) sorted by relevance

/base/msdp/device_status/intention/ipc/socket/include/
H A Dsocket_session.h27 class SocketSession final : public ISocketSession, public IEpollEventSource {
29 SocketSession(const std::string &programName, int32_t moduleType,
31 DISALLOW_COPY_AND_MOVE(SocketSession);
32 ~SocketSession();
56 inline int32_t SocketSession::GetUid() const in GetUid()
61 inline int32_t SocketSession::GetPid() const in GetPid()
66 inline int32_t SocketSession::GetFd() const in GetFd()
71 inline std::string SocketSession::GetProgramName() const in GetProgramName()
76 inline void SocketSession::SetProgramName(const std::string &programName) in SetProgramName()
H A Dsocket_session_manager.h72 std::shared_ptr<SocketSession> FindSession(int32_t fd) const;
74 bool AddSession(std::shared_ptr<SocketSession> session);
76 void NotifySessionDeleted(std::shared_ptr<SocketSession> sessionPtr);
80 std::map<int32_t, std::shared_ptr<SocketSession>> sessions_;
/base/msdp/device_status/intention/ipc/socket/src/
H A Dsocket_session.cpp26 #define LOG_TAG "SocketSession"
32 SocketSession::SocketSession(const std::string &programName, int32_t moduleType, in SocketSession() function in OHOS::Msdp::DeviceStatus::SocketSession
37 SocketSession::~SocketSession() in ~SocketSession()
44 bool SocketSession::SendMsg(NetPacket &pkt) const in SendMsg()
58 bool SocketSession::SendMsg(const char *buf, size_t size) const in SendMsg()
102 std::string SocketSession::ToString() const in ToString()
113 void SocketSession::Dispatch(const struct epoll_event &ev) in Dispatch()
H A Dsocket_session_manager.cpp97 std::shared_ptr<SocketSession> session { nullptr }; in AllocSocketFd()
106 session = std::make_shared<SocketSession>(programName, moduleType, tokenType, sockFds[0], uid, pid); in AllocSocketFd()
268 std::shared_ptr<SocketSession> SocketSessionManager::FindSession(int32_t fd) const in FindSession()
288 bool SocketSessionManager::AddSession(std::shared_ptr<SocketSession> session) in AddSession()
332 void SocketSessionManager::NotifySessionDeleted(std::shared_ptr<SocketSession> session) in NotifySessionDeleted()
/base/msdp/device_status/test/unittest/intention/ipc/src/
H A Dsocket_session_test.cpp39 std::shared_ptr<SocketSession> g_session { nullptr };
40 std::shared_ptr<SocketSession> g_sessionOne { nullptr };
60 g_session = std::make_shared<SocketSession>("test", moduleType, tokenType, sockFds[0], uid, pid); in SetUp()
61 g_sessionOne = std::make_shared<SocketSession>("test1", moduleType, tokenType, sockFds[1], uid, pid); in SetUp()
/base/msdp/device_status/test/fuzztest/ipcsocket_fuzzer/
H A Dipcsocket_fuzzer.cpp135 SocketSession socketSession("testProgramName", 1, 1, 1, 1, 1); in SocketSessionFuzzTest()
/base/msdp/device_status/test/unittest/intention/cooperate/src/
H A Dcooperate_plugin_test.cpp54 std::shared_ptr<SocketSession> g_session { nullptr };
199 g_session = std::make_shared<SocketSession>("test", moduleType, tokenType, sockFds[0], uid, pid); in SetUp()

Completed in 7 milliseconds