Home
last modified time | relevance | path

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

/foundation/multimodalinput/input/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.h69 std::shared_ptr<SocketSession> FindSession(int32_t fd) const;
71 bool AddSession(std::shared_ptr<SocketSession> session);
73 void NotifySessionDeleted(std::shared_ptr<SocketSession> sessionPtr);
76 std::map<int32_t, std::shared_ptr<SocketSession>> sessions_;
/foundation/multimodalinput/input/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()
103 std::string SocketSession::ToString() const in ToString()
114 void SocketSession::Dispatch(const struct epoll_event &ev) in Dispatch()
H A Dsocket_session_manager.cpp74 std::shared_ptr<SocketSession> session { nullptr }; in AllocSocketFd()
83 session = std::make_shared<SocketSession>(programName, moduleType, tokenType, sockFds[0], uid, pid); in AllocSocketFd()
196 std::shared_ptr<SocketSession> SocketSessionManager::FindSession(int32_t fd) const in FindSession()
214 bool SocketSessionManager::AddSession(std::shared_ptr<SocketSession> session) in AddSession()
250 void SocketSessionManager::NotifySessionDeleted(std::shared_ptr<SocketSession> session) in NotifySessionDeleted()

Completed in 2 milliseconds