SNode.C
|
#include <MqttContext.h>
Public Member Functions | |
MqttContext (Mqtt *mqtt) | |
MqttContext (const MqttContext &)=default | |
MqttContext & | operator= (const MqttContext &)=default |
virtual | ~MqttContext () |
virtual std::size_t | recv (char *chunk, std::size_t chunklen)=0 |
virtual void | send (const char *chunk, std::size_t chunklen)=0 |
virtual core::socket::stream::SocketConnection * | getSocketConnection () const =0 |
virtual void | end (bool fatal=false)=0 |
virtual void | close ()=0 |
void | onConnected () |
std::size_t | onReceivedFromPeer () |
void | onDisconnected () |
bool | onSignal (int sig) |
Protected Attributes | |
Mqtt * | mqtt |
Definition at line 39 of file MqttContext.h.
|
explicit |
Definition at line 30 of file MqttContext.cpp.
References mqtt, and iot::mqtt::Mqtt::setMqttContext().
Referenced by iot::mqtt::SocketContext::SocketContext().
|
default |
|
virtual |
|
pure virtual |
Implemented in iot::mqtt::SocketContext, and iot::mqtt::SubProtocol< WSSubProtocolRoleT >.
|
pure virtual |
Implemented in iot::mqtt::SocketContext, and iot::mqtt::SubProtocol< WSSubProtocolRoleT >.
|
pure virtual |
Implemented in iot::mqtt::SocketContext, and iot::mqtt::SubProtocol< WSSubProtocolRoleT >.
void iot::mqtt::MqttContext::onConnected | ( | ) |
Definition at line 39 of file MqttContext.cpp.
References mqtt, and iot::mqtt::Mqtt::onConnected().
Referenced by iot::mqtt::SocketContext::onConnected().
void iot::mqtt::MqttContext::onDisconnected | ( | ) |
Definition at line 47 of file MqttContext.cpp.
References mqtt, and iot::mqtt::Mqtt::onDisconnected().
Referenced by iot::mqtt::SocketContext::onDisconnected().
std::size_t iot::mqtt::MqttContext::onReceivedFromPeer | ( | ) |
Definition at line 43 of file MqttContext.cpp.
References mqtt, and iot::mqtt::Mqtt::onReceivedFromPeer().
Referenced by iot::mqtt::SocketContext::onReceivedFromPeer().
bool iot::mqtt::MqttContext::onSignal | ( | int | sig | ) |
Definition at line 51 of file MqttContext.cpp.
References mqtt, and iot::mqtt::Mqtt::onSignal().
Referenced by iot::mqtt::SocketContext::onSignal().
|
default |
|
pure virtual |
Implemented in iot::mqtt::SocketContext, and iot::mqtt::SubProtocol< WSSubProtocolRoleT >.
|
pure virtual |
Implemented in iot::mqtt::SocketContext, and iot::mqtt::SubProtocol< WSSubProtocolRoleT >.
|
protected |
Definition at line 62 of file MqttContext.h.
Referenced by MqttContext(), onConnected(), onDisconnected(), onReceivedFromPeer(), onSignal(), and ~MqttContext().