Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
3rdparty
paho.mqtt.c
src
MQTTProtocol.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (c) 2009, 2014 IBM Corp.
3
*
4
* All rights reserved. This program and the accompanying materials
5
* are made available under the terms of the Eclipse Public License v2.0
6
* and Eclipse Distribution License v1.0 which accompany this distribution.
7
*
8
* The Eclipse Public License is available at
9
* https://www.eclipse.org/legal/epl-2.0/
10
* and the Eclipse Distribution License is available at
11
* http://www.eclipse.org/org/documents/edl-v10.php.
12
*
13
* Contributors:
14
* Ian Craggs - initial API and implementation and/or initial documentation
15
* Ian Craggs - MQTT 3.1.1 updates
16
*******************************************************************************/
17
18
#if !defined(MQTTPROTOCOL_H)
19
#define MQTTPROTOCOL_H
20
21
#include "
LinkedList.h
"
22
#include "
MQTTPacket.h
"
23
#include "
Clients.h
"
24
25
#define MAX_MSG_ID 65535
26
#define MAX_CLIENTID_LEN 65535
27
28
typedef
struct
29
{
30
int
socket
;
31
Publications
*
p
;
32
}
pending_write
;
33
34
35
typedef
struct
36
{
37
List
publications
;
38
unsigned
int
msgs_received
;
39
unsigned
int
msgs_sent
;
40
List
pending_writes
;
/* for qos 0 writes not complete */
41
}
MQTTProtocol
;
42
43
44
#include "
MQTTProtocolOut.h
"
45
46
#endif
pending_write
Definition:
MQTTProtocol.h:28
MQTTProtocol::msgs_received
unsigned int msgs_received
Definition:
MQTTProtocol.h:38
MQTTProtocol::pending_writes
List pending_writes
Definition:
MQTTProtocol.h:40
pending_write::p
Publications * p
Definition:
MQTTProtocol.h:31
Clients.h
MQTTProtocolOut.h
LinkedList.h
MQTTProtocol::publications
List publications
Definition:
MQTTProtocol.h:37
MQTTPacket.h
pending_write::socket
int socket
Definition:
MQTTProtocol.h:30
Publications
Definition:
Clients.h:40
MQTTProtocol
Definition:
MQTTProtocol.h:35
MQTTProtocol::msgs_sent
unsigned int msgs_sent
Definition:
MQTTProtocol.h:39
List
Definition:
LinkedList.h:67
plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:48:09