Ring Daemon 16.0.0
|
Manages Conversation's channels. More...
#include <transfer_channel_handler.h>
Public Member Functions | |
void | connect (const DeviceId &deviceId, const std::string &channelName, ConnectCb &&cb, const std::string &connectionType="", bool forceNewConnection=false) override |
Ask for a new channel This replaces the connectDevice() in jamiaccount. | |
void | onReady (const std::shared_ptr< dht::crypto::Certificate > &peer, const std::string &name, std::shared_ptr< dhtnet::ChannelSocket > channel) override |
Handle socket ready. | |
bool | onRequest (const std::shared_ptr< dht::crypto::Certificate > &peer, const std::string &name) override |
Determine if we accept or not the request. | |
TransferChannelHandler (const std::shared_ptr< JamiAccount > &acc, dhtnet::ConnectionManager &cm) | |
~TransferChannelHandler () | |
![]() | |
virtual void | connect (const dht::InfoHash &, const std::string &, ConnectCallbackLegacy &&) |
virtual | ~ChannelHandlerInterface () |
Manages Conversation's channels.
Definition at line 28 of file transfer_channel_handler.h.
jami::TransferChannelHandler::TransferChannelHandler | ( | const std::shared_ptr< JamiAccount > & | acc, |
dhtnet::ConnectionManager & | cm | ||
) |
Definition at line 27 of file transfer_channel_handler.cpp.
References jami::fileutils::get_data_dir().
jami::TransferChannelHandler::~TransferChannelHandler | ( | ) |
Definition at line 37 of file transfer_channel_handler.cpp.
|
overridevirtual |
Ask for a new channel This replaces the connectDevice() in jamiaccount.
deviceId | The device to connect |
channelName | 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) |
Implements jami::ChannelHandlerInterface.
Definition at line 40 of file transfer_channel_handler.cpp.
|
overridevirtual |
Handle socket ready.
deviceId | Related device |
name | Name of the handler |
channel | Channel to handle |
Implements jami::ChannelHandlerInterface.
Definition at line 90 of file transfer_channel_handler.cpp.
References jami::DATA_TRANSFER_SCHEME, jami::emitSignal(), JAMI_WARNING, and jami::split_string().
|
overridevirtual |
Determine if we accept or not the request.
deviceId | device who asked |
name | name asked |
Implements jami::ChannelHandlerInterface.
Definition at line 48 of file transfer_channel_handler.cpp.
References jami::DATA_TRANSFER_SCHEME, and jami::emitSignal().