|
Ring Daemon
|
Manages Conversation's channels. More...
#include <swarm_channel_handler.h>


Public Member Functions | |
| void | connect (const NodeId &nodeId, const std::string &name, ConnectCb &&cb, const std::string &connectionType="", bool forceNewConnection=false) override |
| Ask for a new git channel. | |
| void | onReady (const std::shared_ptr< dht::crypto::Certificate > &peer, const std::string &name, std::shared_ptr< dhtnet::ChannelSocket > channel) override |
| TODO, this needs to extract gitservers from JamiAccount. | |
| bool | onRequest (const std::shared_ptr< dht::crypto::Certificate > &peer, const std::string &name) override |
| Determine if we accept or not the git request. | |
| SwarmChannelHandler (const std::shared_ptr< JamiAccount > &acc, dhtnet::ConnectionManager &cm) | |
| ~SwarmChannelHandler () | |
Public Member Functions inherited from jami::ChannelHandlerInterface | |
| virtual void | connect (const DeviceId &deviceId, const std::string &name, ConnectCb &&cb, const std::string &connectionType="", bool forceNewConnection=false)=0 |
| Ask for a new channel. | |
| virtual void | connect (const dht::InfoHash &, const std::string &, ConnectCallbackLegacy &&) |
| virtual | ~ChannelHandlerInterface () |
Manages Conversation's channels.
Definition at line 33 of file swarm_channel_handler.h.
| jami::SwarmChannelHandler::SwarmChannelHandler | ( | const std::shared_ptr< JamiAccount > & | acc, |
| dhtnet::ConnectionManager & | cm | ||
| ) |
Definition at line 23 of file swarm_channel_handler.cpp.
| jami::SwarmChannelHandler::~SwarmChannelHandler | ( | ) |
Definition at line 29 of file swarm_channel_handler.cpp.
|
override |
Ask for a new git channel.
| nodeId | The node to connect |
| name | The name of the channel |
| cb | The callback to call when connected (can be immediate if already connected) |
| connectionType | The connection type used by iOS notifications (not used) |
| forceNewConnection | If we want a new SIP connection (not used) |
Definition at line 32 of file swarm_channel_handler.cpp.
References jami::emitSignal().

|
overridevirtual |
TODO, this needs to extract gitservers from JamiAccount.
Implements jami::ChannelHandlerInterface.
Definition at line 68 of file swarm_channel_handler.cpp.
References jami::emitSignal().

|
overridevirtual |
Determine if we accept or not the git request.
| nodeId | node who asked |
| name | name asked |
Implements jami::ChannelHandlerInterface.
Definition at line 46 of file swarm_channel_handler.cpp.
References jami::emitSignal().
