#include <rlmqtt.h>
|
| enum | ControlPacketType {
Reserved0 = 0,
CONNECT = 1,
CONNACK = 2,
PUBLISH = 3,
PUBACK = 4,
PUBREC = 5,
PUBREL = 6,
PUBCOMP = 7,
SUBSCRIBE = 8,
SUBACK = 9,
UNSUBSCRIBE = 10,
UNSUBACK = 11,
PINGREQ = 12,
PINGRESP = 13,
DISCONNECT = 14,
Reserved15 = 15
} |
| |
| enum | SocketEnum {
SOCKET_ERR = -1,
SETSOCKOPT_ERR = -2,
LISTEN_ERR = -3,
ACCEPT_ERR = -4,
INET_ADDR_ERR = -5,
CONNECT_ERR = -6,
PORT_ERR = -7
} |
| |
|
| | rlMQTT (const char *adr) |
| |
| virtual | ~rlMQTT () |
| |
| int | sendCONNECT (int connect_flags=0) |
| |
| int | sendCONNACK () |
| |
| int | sendPUBLISH () |
| |
| int | sendPUBACK () |
| |
| int | sendPUBREC () |
| |
| int | sendPUBREL () |
| |
| int | sendPUBCOMP () |
| |
| int | sendSUBSCRIBE () |
| |
| int | sendSUBACK () |
| |
| int | sendUNSUBSCRIBE () |
| |
| int | sendUNSUBACK () |
| |
| int | sendPINGREQ () |
| |
| int | sendPINGRESP () |
| |
| int | sendDISCONNECT () |
| |
| int | receivePacket () |
| |
| | rlSocket (const char *adr, int port, int active) |
| |
| | rlSocket (int socket) |
| |
| virtual | ~rlSocket () |
| |
| void | setAdr (const char *adr) |
| |
| void | setPort (int port) |
| |
| int | getPort () |
| |
| void | setActive (int active) |
| |
| int | read (void *buf, int len, int timeout=0) |
| |
| int | readStr (char *buf, int len, int timeout=0) |
| |
| int | readHttpHeader (rlString *header, int timeout=0) |
| |
| int | write (const void *buf, int len) |
| |
| int | printf (const char *format,...) |
| |
| int | connect () |
| |
| int | disconnect () |
| |
| int | select (int timeout=0) |
| |
| int | isConnected () |
| |
| int | setIPVersion (int version) |
| |
| int | getIPVersion () |
| |
| int | sendProcessViewBrowserButtonEvent (int id) |
| |
| int | rlGetsockopt (int level, int optname) |
| |
| int | rlSetsockopt (int level, int optname) |
| |
| int | readHttpContentLength (int timeout) |
| |
|
| static int | rlGetsockopt (int sockfd, int level, int optname, void *optval, int *optlen) |
| |
| static int | rlSetsockopt (int sockfd, int level, int optname, const void *optval, int optlen) |
| |
| int | s |
| |
| unsigned char | sockaddr [16+48] |
| |
◆ ControlPacketType
| Enumerator |
|---|
| Reserved0 | |
| CONNECT | |
| CONNACK | |
| PUBLISH | |
| PUBACK | |
| PUBREC | |
| PUBREL | |
| PUBCOMP | |
| SUBSCRIBE | |
| SUBACK | |
| UNSUBSCRIBE | |
| UNSUBACK | |
| PINGREQ | |
| PINGRESP | |
| DISCONNECT | |
| Reserved15 | |
Definition at line 35 of file rlmqtt.h.
◆ rlMQTT()
| rlMQTT::rlMQTT |
( |
const char * |
adr | ) |
|
◆ ~rlMQTT()
| virtual rlMQTT::~rlMQTT |
( |
| ) |
|
|
virtual |
◆ receivePacket()
| int rlMQTT::receivePacket |
( |
| ) |
|
◆ sendCONNACK()
| int rlMQTT::sendCONNACK |
( |
| ) |
|
◆ sendCONNECT()
| int rlMQTT::sendCONNECT |
( |
int |
connect_flags = 0 | ) |
|
◆ sendDISCONNECT()
| int rlMQTT::sendDISCONNECT |
( |
| ) |
|
◆ sendFixedHeader()
| int rlMQTT::sendFixedHeader |
( |
int |
control_packet_type, |
|
|
int |
remaining_length = 0, |
|
|
int |
flags = 0 |
|
) |
| |
|
private |
◆ sendPINGREQ()
| int rlMQTT::sendPINGREQ |
( |
| ) |
|
◆ sendPINGRESP()
| int rlMQTT::sendPINGRESP |
( |
| ) |
|
◆ sendPUBACK()
| int rlMQTT::sendPUBACK |
( |
| ) |
|
◆ sendPUBCOMP()
| int rlMQTT::sendPUBCOMP |
( |
| ) |
|
◆ sendPUBLISH()
| int rlMQTT::sendPUBLISH |
( |
| ) |
|
◆ sendPUBREC()
| int rlMQTT::sendPUBREC |
( |
| ) |
|
◆ sendPUBREL()
| int rlMQTT::sendPUBREL |
( |
| ) |
|
◆ sendString()
| int rlMQTT::sendString |
( |
const char * |
text | ) |
|
|
private |
◆ sendSUBACK()
| int rlMQTT::sendSUBACK |
( |
| ) |
|
◆ sendSUBSCRIBE()
| int rlMQTT::sendSUBSCRIBE |
( |
| ) |
|
◆ sendUNSUBACK()
| int rlMQTT::sendUNSUBACK |
( |
| ) |
|
◆ sendUNSUBSCRIBE()
| int rlMQTT::sendUNSUBSCRIBE |
( |
| ) |
|
◆ last_send_control_packet_type
| int rlMQTT::last_send_control_packet_type |
|
private |
◆ last_send_flags
| int rlMQTT::last_send_flags |
|
private |
◆ last_send_packet_identifier
| int rlMQTT::last_send_packet_identifier |
|
private |
The documentation for this class was generated from the following file: