Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
paho.mqtt.c
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eclipse
paho.mqtt.c
Commits
7c30485c
Commit
7c30485c
authored
Mar 03, 2014
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update header commments for 3.1.1 updates
parent
28e3c018
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
125 additions
and
96 deletions
+125
-96
MQTTAsync.c
src/MQTTAsync.c
+13
-13
MQTTClient.c
src/MQTTClient.c
+10
-9
MQTTPacket.c
src/MQTTPacket.c
+2
-1
MQTTPacketOut.c
src/MQTTPacketOut.c
+14
-13
MQTTPacketOut.h
src/MQTTPacketOut.h
+2
-1
MQTTProtocolOut.c
src/MQTTProtocolOut.c
+3
-2
MQTTProtocolOut.h
src/MQTTProtocolOut.h
+2
-1
test1.c
test/test1.c
+17
-12
test3.c
test/test3.c
+15
-11
test4.c
test/test4.c
+16
-11
test5.c
test/test5.c
+16
-11
test6.c
test/test6.c
+15
-11
No files found.
src/MQTTAsync.c
View file @
7c30485c
/*******************************************************************************
/*******************************************************************************
* Copyright (c) 2009, 201
3
IBM Corp.
* Copyright (c) 2009, 201
4
IBM Corp.
*
*
* All rights reserved. This program and the accompanying materials
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* are made available under the terms of the Eclipse Public License v1.0
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
* Ian Craggs - fix for bug# 415042 - using already freed structure
* Ian Craggs - fix for bug# 415042 - using already freed structure
* Ian Craggs - fix for bug 419233 - mutexes not reporting errors
* Ian Craggs - fix for bug 419233 - mutexes not reporting errors
* Ian Craggs - fix for bug #420851
* Ian Craggs - fix for bug #420851
* Ian Craggs - MQTT 3.1.1 support
*******************************************************************************/
*******************************************************************************/
/**
/**
...
@@ -981,7 +982,6 @@ void MQTTAsync_processCommand()
...
@@ -981,7 +982,6 @@ void MQTTAsync_processCommand()
command
->
command
.
details
.
conn
.
currentURI
++
;
command
->
command
.
details
.
conn
.
currentURI
++
;
command
->
command
.
details
.
conn
.
MQTTVersion
=
4
;
command
->
command
.
details
.
conn
.
MQTTVersion
=
4
;
}
}
serverURI
=
command
->
command
.
details
.
conn
.
serverURIs
[
command
->
command
.
details
.
conn
.
currentURI
];
serverURI
=
command
->
command
.
details
.
conn
.
serverURIs
[
command
->
command
.
details
.
conn
.
currentURI
];
if
(
strncmp
(
URI_TCP
,
serverURI
,
strlen
(
URI_TCP
))
==
0
)
if
(
strncmp
(
URI_TCP
,
serverURI
,
strlen
(
URI_TCP
))
==
0
)
...
...
src/MQTTClient.c
View file @
7c30485c
/*******************************************************************************
/*******************************************************************************
* Copyright (c) 2009, 201
3
IBM Corp.
* Copyright (c) 2009, 201
4
IBM Corp.
*
*
* All rights reserved. This program and the accompanying materials
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* are made available under the terms of the Eclipse Public License v1.0
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
* Ian Craggs - fix for bug 421103 - trying to write to same socket, in publish/retries
* Ian Craggs - fix for bug 421103 - trying to write to same socket, in publish/retries
* Ian Craggs - fix for bug 419233 - mutexes not reporting errors
* Ian Craggs - fix for bug 419233 - mutexes not reporting errors
* Ian Craggs - fix for bug #420851
* Ian Craggs - fix for bug #420851
* Ian Craggs - MQTT 3.1.1 support
*******************************************************************************/
*******************************************************************************/
/**
/**
...
@@ -796,7 +797,7 @@ int MQTTClient_connectURIVersion(MQTTClient handle, MQTTClient_connectOptions* o
...
@@ -796,7 +797,7 @@ int MQTTClient_connectURIVersion(MQTTClient handle, MQTTClient_connectOptions* o
rc
=
SOCKET_ERROR
;
rc
=
SOCKET_ERROR
;
goto
exit
;
goto
exit
;
}
}
if
(
!
m
->
c
->
cleansession
&&
m
->
c
->
session
==
NULL
)
if
(
!
m
->
c
->
cleansession
&&
m
->
c
->
session
==
NULL
)
m
->
c
->
session
=
SSL_get1_session
(
m
->
c
->
net
.
ssl
);
m
->
c
->
session
=
SSL_get1_session
(
m
->
c
->
net
.
ssl
);
}
}
}
}
...
...
src/MQTTPacket.c
View file @
7c30485c
/*******************************************************************************
/*******************************************************************************
* Copyright (c) 2009, 201
3
IBM Corp.
* Copyright (c) 2009, 201
4
IBM Corp.
*
*
* All rights reserved. This program and the accompanying materials
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* are made available under the terms of the Eclipse Public License v1.0
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
* Contributors:
* Contributors:
* Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs, Allan Stockdill-Mander - SSL updates
* Ian Craggs, Allan Stockdill-Mander - SSL updates
* Ian Craggs - MQTT 3.1.1 support
*******************************************************************************/
*******************************************************************************/
/**
/**
...
...
src/MQTTPacketOut.c
View file @
7c30485c
/*******************************************************************************
/*******************************************************************************
* Copyright (c) 2009, 201
3
IBM Corp.
* Copyright (c) 2009, 201
4
IBM Corp.
*
*
* All rights reserved. This program and the accompanying materials
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* are made available under the terms of the Eclipse Public License v1.0
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
* Contributors:
* Contributors:
* Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs, Allan Stockdill-Mander - SSL updates
* Ian Craggs, Allan Stockdill-Mander - SSL updates
* Ian Craggs - MQTT 3.1.1 support
*******************************************************************************/
*******************************************************************************/
/**
/**
...
...
src/MQTTPacketOut.h
View file @
7c30485c
/*******************************************************************************
/*******************************************************************************
* Copyright (c) 2009, 201
3
IBM Corp.
* Copyright (c) 2009, 201
4
IBM Corp.
*
*
* All rights reserved. This program and the accompanying materials
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* are made available under the terms of the Eclipse Public License v1.0
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
* Contributors:
* Contributors:
* Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs, Allan Stockdill-Mander - SSL updates
* Ian Craggs, Allan Stockdill-Mander - SSL updates
* Ian Craggs - MQTT 3.1.1 support
*******************************************************************************/
*******************************************************************************/
#if !defined(MQTTPACKETOUT_H)
#if !defined(MQTTPACKETOUT_H)
...
...
src/MQTTProtocolOut.c
View file @
7c30485c
/*******************************************************************************
/*******************************************************************************
* Copyright (c) 2009, 201 IBM Corp.
* Copyright (c) 2009, 201
4
IBM Corp.
*
*
* All rights reserved. This program and the accompanying materials
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* are made available under the terms of the Eclipse Public License v1.0
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
* Contributors:
* Contributors:
* Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs, Allan Stockdill-Mander - SSL updates
* Ian Craggs, Allan Stockdill-Mander - SSL updates
* Ian Craggs - MQTT 3.1.1 support
*******************************************************************************/
*******************************************************************************/
/**
/**
...
...
src/MQTTProtocolOut.h
View file @
7c30485c
/*******************************************************************************
/*******************************************************************************
* Copyright (c) 2009, 201
3
IBM Corp.
* Copyright (c) 2009, 201
4
IBM Corp.
*
*
* All rights reserved. This program and the accompanying materials
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* are made available under the terms of the Eclipse Public License v1.0
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
* Contributors:
* Contributors:
* Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs, Allan Stockdill-Mander - SSL updates
* Ian Craggs, Allan Stockdill-Mander - SSL updates
* Ian Craggs - MQTT 3.1.1 support
*******************************************************************************/
*******************************************************************************/
#if !defined(MQTTPROTOCOLOUT_H)
#if !defined(MQTTPROTOCOLOUT_H)
...
...
test/test1.c
View file @
7c30485c
#define MY_ID "@(#) stmqcom/pub1.c, stmqcom, cs 1.85 10/08/24 07:36:24"
/*******************************************************************************
/*--------------------------------------------------------------------*/
* Copyright (c) 2009, 2014 IBM Corp.
/* [Platforms]UNIX NT[/Platforms] */
*
/* [Title]MQ Telemetry MQTT C client tests */
* All rights reserved. This program and the accompanying materials
/* [/Title] */
* are made available under the terms of the Eclipse Public License v1.0
/* [Testclasses]stcom1 stmqcom1[/Category] */
* and Eclipse Distribution License v1.0 which accompany this distribution.
/* [Category]MQ Telemetry[/Category] */
*
/* */
* The Eclipse Public License is available at
/* Copyright IBM 2012 */
* http://www.eclipse.org/legal/epl-v10.html
/* All rights reserved. */
* and the Eclipse Distribution License is available at
/*--------------------------------------------------------------------*/
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs - MQTT 3.1.1 support
*******************************************************************************/
/**
/**
...
...
test/test3.c
View file @
7c30485c
#define MY_ID "@(#) stmqcom/pub1.c, stmqcom, cs 1.85 10/08/24 07:36:24"
/*******************************************************************************
/*--------------------------------------------------------------------*/
* Copyright (c) 2012, 2014 IBM Corp.
/* [Platforms]UNIX NT[/Platforms] */
*
/* [Title]MQ Telemetry MQTT C client SSL tests */
* All rights reserved. This program and the accompanying materials
/* [/Title] */
* are made available under the terms of the Eclipse Public License v1.0
/* [Testclasses]stcom1 stmqcom1[/Category] */
* and Eclipse Distribution License v1.0 which accompany this distribution.
/* [Category]MQ Telemetry[/Category] */
*
/* */
* The Eclipse Public License is available at
/* Copyright IBM 2012 */
* http://www.eclipse.org/legal/epl-v10.html
/* All rights reserved. */
* and the Eclipse Distribution License is available at
/*--------------------------------------------------------------------*/
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Allan Stockdill-Mander - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
/**
...
...
test/test4.c
View file @
7c30485c
#define MY_ID "@(#) stmqcom/pub1.c, stmqcom, cs 1.85 10/08/24 07:36:24"
/*******************************************************************************
/*--------------------------------------------------------------------*/
* Copyright (c) 2009, 2014 IBM Corp.
/* [Platforms]UNIX NT[/Platforms] */
*
/* [Title]MQ Telemetry MQTT C client tests */
* All rights reserved. This program and the accompanying materials
/* [/Title] */
* are made available under the terms of the Eclipse Public License v1.0
/* [Testclasses]stcom1 stmqcom1[/Category] */
* and Eclipse Distribution License v1.0 which accompany this distribution.
/* [Category]MQ Telemetry[/Category] */
*
/* */
* The Eclipse Public License is available at
/* Copyright IBM 2012 */
* http://www.eclipse.org/legal/epl-v10.html
/* All rights reserved. */
* and the Eclipse Distribution License is available at
/*--------------------------------------------------------------------*/
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs - MQTT 3.1.1 support
*******************************************************************************/
/**
/**
...
...
test/test5.c
View file @
7c30485c
#define MY_ID "@(#) stmqcom/pub1.c, stmqcom, cs 1.85 10/08/24 07:36:24"
/*******************************************************************************
/*--------------------------------------------------------------------*/
* Copyright (c) 2012, 2014 IBM Corp.
/* [Platforms]UNIX NT[/Platforms] */
*
/* [Title]MQ Telemetry MQTT C client SSL tests */
* All rights reserved. This program and the accompanying materials
/* [/Title] */
* are made available under the terms of the Eclipse Public License v1.0
/* [Testclasses]stcom1 stmqcom1[/Category] */
* and Eclipse Distribution License v1.0 which accompany this distribution.
/* [Category]MQ Telemetry[/Category] */
*
/* */
* The Eclipse Public License is available at
/* Copyright IBM 2012 */
* http://www.eclipse.org/legal/epl-v10.html
/* All rights reserved. */
* and the Eclipse Distribution License is available at
/*--------------------------------------------------------------------*/
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Allan Stockdill-Mander - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
/**
* @file
* @file
...
...
test/test6.c
View file @
7c30485c
#define MY_ID "@(#) stmqcom/pub1.c, stmqcom, cs 1.85 10/08/24 07:36:24"
/*******************************************************************************
/*--------------------------------------------------------------------*/
* Copyright (c) 2011, 2014 IBM Corp.
/* [Platforms]UNIX NT[/Platforms] */
*
/* [Title]MQTT restart/recovery application for Async C client */
* All rights reserved. This program and the accompanying materials
/* [/Title] */
* are made available under the terms of the Eclipse Public License v1.0
/* [Testclasses]stcom1 stmqcom1[/Category] */
* and Eclipse Distribution License v1.0 which accompany this distribution.
/* [Category]MQDrivers[/Category] */
*
/* */
* The Eclipse Public License is available at
/* Copyright IBM 2011, 2013 */
* http://www.eclipse.org/legal/epl-v10.html
/* All rights reserved. */
* and the Eclipse Distribution License is available at
/*--------------------------------------------------------------------*/
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Ian Craggs - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment