Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::MessageChannelHandler::Impl Struct Reference
Inheritance diagram for jami::MessageChannelHandler::Impl:
Inheritance graph
Collaboration diagram for jami::MessageChannelHandler::Impl:
Collaboration graph

Public Member Functions

 Impl (dhtnet::ConnectionManager &cm, OnMessage onMessage, OnPeerStateChanged onPeer)
 
void onChannelShutdown (const std::shared_ptr< dhtnet::ChannelSocket > &socket, const std::string &peerId, const DeviceId &device)
 

Public Attributes

dhtnet::ConnectionManager & connectionManager_
 
std::map< std::string, std::map< DeviceId, std::vector< std::shared_ptr< dhtnet::ChannelSocket > > > > connections_
 
std::recursive_mutex connectionsMtx_
 
OnMessage onMessage_
 
OnPeerStateChanged onPeerStateChanged_
 

Detailed Description

Definition at line 25 of file message_channel_handler.cpp.

Constructor & Destructor Documentation

◆ Impl()

jami::MessageChannelHandler::Impl::Impl ( dhtnet::ConnectionManager &  cm,
OnMessage  onMessage,
OnPeerStateChanged  onPeer 
)
inline

Definition at line 33 of file message_channel_handler.cpp.

Member Function Documentation

◆ onChannelShutdown()

void jami::MessageChannelHandler::Impl::onChannelShutdown ( const std::shared_ptr< dhtnet::ChannelSocket > &  socket,
const std::string &  peerId,
const DeviceId device 
)

Definition at line 73 of file message_channel_handler.cpp.

References connections_, connectionsMtx_, jami::emitSignal(), and onPeerStateChanged_.

Here is the call graph for this function:

Member Data Documentation

◆ connectionManager_

dhtnet::ConnectionManager& jami::MessageChannelHandler::Impl::connectionManager_

Definition at line 27 of file message_channel_handler.cpp.

◆ connections_

std::map<std::string, std::map<DeviceId, std::vector<std::shared_ptr<dhtnet::ChannelSocket> > > > jami::MessageChannelHandler::Impl::connections_

Definition at line 31 of file message_channel_handler.cpp.

Referenced by onChannelShutdown().

◆ connectionsMtx_

std::recursive_mutex jami::MessageChannelHandler::Impl::connectionsMtx_

Definition at line 30 of file message_channel_handler.cpp.

Referenced by onChannelShutdown().

◆ onMessage_

OnMessage jami::MessageChannelHandler::Impl::onMessage_

Definition at line 28 of file message_channel_handler.cpp.

◆ onPeerStateChanged_

OnPeerStateChanged jami::MessageChannelHandler::Impl::onPeerStateChanged_

Definition at line 29 of file message_channel_handler.cpp.

Referenced by onChannelShutdown().


The documentation for this struct was generated from the following file: