|
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 61 of file MqttContext.h.
|
explicit |
Definition at line 52 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 >.
Referenced by iot::mqtt::Mqtt::initSession().
|
pure virtual |
Implemented in iot::mqtt::SocketContext, and iot::mqtt::SubProtocol< WSSubProtocolRoleT >.
Referenced by iot::mqtt::server::Mqtt::_onConnect(), iot::mqtt::Mqtt::_onPuback(), iot::mqtt::Mqtt::_onPubcomp(), iot::mqtt::Mqtt::_onPublish(), iot::mqtt::Mqtt::_onPubrec(), iot::mqtt::Mqtt::_onPubrel(), iot::mqtt::client::Mqtt::_onSuback(), iot::mqtt::server::Mqtt::_onSubscribe(), iot::mqtt::client::Mqtt::_onUnsuback(), iot::mqtt::server::Mqtt::_onUnsubscribe(), and iot::mqtt::client::Mqtt::sendDisconnect().
|
pure virtual |
Implemented in iot::mqtt::SocketContext, and iot::mqtt::SubProtocol< WSSubProtocolRoleT >.
Referenced by iot::mqtt::Mqtt::initSession().
| void iot::mqtt::MqttContext::onConnected | ( | ) |
Definition at line 61 of file MqttContext.cpp.
References mqtt, and iot::mqtt::Mqtt::onConnected().
Referenced by iot::mqtt::SocketContext::onConnected(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onConnected().
| void iot::mqtt::MqttContext::onDisconnected | ( | ) |
Definition at line 69 of file MqttContext.cpp.
References mqtt, and iot::mqtt::Mqtt::onDisconnected().
Referenced by iot::mqtt::SocketContext::onDisconnected(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onDisconnected().
| std::size_t iot::mqtt::MqttContext::onReceivedFromPeer | ( | ) |
Definition at line 65 of file MqttContext.cpp.
References mqtt, and iot::mqtt::Mqtt::onReceivedFromPeer().
Referenced by iot::mqtt::SocketContext::onReceivedFromPeer(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::SubProtocol().
| bool iot::mqtt::MqttContext::onSignal | ( | int | sig | ) |
Definition at line 73 of file MqttContext.cpp.
References mqtt, and iot::mqtt::Mqtt::onSignal().
Referenced by iot::mqtt::SocketContext::onSignal(), and iot::mqtt::SubProtocol< WSSubProtocolRoleT >::onSignal().
|
default |
|
pure virtual |
Implemented in iot::mqtt::SocketContext, and iot::mqtt::SubProtocol< WSSubProtocolRoleT >.
Referenced by iot::mqtt::types::TypeBase< ValueTypeT >::deserialize(), and iot::mqtt::types::UIntV::deserialize().
|
pure virtual |
Implemented in iot::mqtt::SocketContext, and iot::mqtt::SubProtocol< WSSubProtocolRoleT >.
Referenced by iot::mqtt::Mqtt::send().
|
protected |
Definition at line 84 of file MqttContext.h.
Referenced by MqttContext(), onConnected(), onDisconnected(), onReceivedFromPeer(), onSignal(), and ~MqttContext().