Karl Palsson
339842b623
db_dump: (trivial) add missing newline in output
...
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-06-21 12:29:58 +00:00
Karl Palsson
b1efd9a868
db_dump: properly print uint64_t
...
store id is a uint64_t, print it consistently.
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-06-21 12:29:58 +00:00
Roger A. Light
fa2d3143a4
Separate the C and C++ static libraries.
2016-06-15 21:11:46 +01:00
Roger A. Light
2286caaca2
Merge branch 'enhance-bare-makefile-static-library-build' of https://github.com/Lance0312/mosquitto into Lance0312-enhance-bare-makefile-static-library-build
2016-06-15 20:59:34 +01:00
Roger A. Light
d90cd585dd
Add WITH_STRIP build option.
2016-06-13 21:36:41 +01:00
Roger Light
6c87f7a514
Merge pull request #179 from Lance0312/enhance-static-library-build
...
Enhance static library build
2016-06-07 21:59:51 +01:00
Roger A. Light
f8d84a62bd
Fix cmake test target.
2016-06-07 21:51:27 +01:00
Roger A. Light
54ca15ad28
Bump appveyor openssl version.
2016-06-07 16:45:09 +01:00
Lance Chen
5ccd0dbb80
Add an build option to control building static libraries or not
...
The option WITH_STATIC_LIBRARIES is default to yes
Signed-off-by: Lance Chen <cyen0312@gmail.com>
2016-06-03 01:59:37 +08:00
Lance Chen
97847fa95b
Rename option BUILD_STATIC_LIBRARY to WITH_STATIC_LIBRARIES
...
to conform to the bare Makefiles
Signed-off-by: Lance Chen <cyen0312@gmail.com>
2016-06-03 01:59:10 +08:00
Lance Chen
4b4817c3f0
Build the CPP static library with bare Makefiles
...
In order to make the CPP static library include all
objects from the C static library, the list of objects
(MOSQ_OBJS) is isolated into objects.mk to be used for
building the C and CPP static libraries.
Signed-off-by: Lance Chen <cyen0312@gmail.com>
2016-06-02 18:02:26 +08:00
Lance Chen
a9b7237d09
Install/Uninstall the C static library
...
Symbol stripping is done explicitly with strip command,
since stripping with install command removes too many
symbols, making the result library unusable.
Signed-off-by: Lance Chen <cyen0312@gmail.com>
2016-06-02 18:02:22 +08:00
Lance Chen
f18e8e12a8
Add build configuration for CPP static library
...
The CPP static library respects options
BUILD_STATIC_LIBRARY and WITH_PIC as well.
Signed-off-by: Lance Chen <cyen0312@gmail.com>
2016-05-31 17:03:52 +08:00
Lance Chen
aa360e4029
Add an option to control building static library with PIC or not
...
The option WITH_PIC is default to OFF.
By default, the static library is built from the
source code directly. If WITH_PIC is enabled, the
static library is built with the same set of
object libraries that the shared library uses.
To link Mosquitto static library into a shared
library, one must enable WITH_PIC to make the
piece of code locatable.
Signed-off-by: Lance Chen <cyen0312@gmail.com>
2016-05-31 17:03:52 +08:00
Lance Chen
7ee997e6cc
Add an option to control building static library or not
...
The BUILD_STATIC_LIBRARY option is default to ON.
Signed-off-by: Lance Chen <cyen0312@gmail.com>
2016-05-31 17:03:52 +08:00
Lance Chen
b87082c604
Fix fail linking of handle* functions in the shared library
...
The shared library fails to link to `handle*` functions
implementd in lib/handle_* because these source file
definitions seem to be removed accidentally in commit
3499c09
.
Signed-off-by: Lance Chen <cyen0312@gmail.com>
2016-05-31 14:53:48 +08:00
Roger A. Light
c6ef86bd1f
Print openssl errors when debugging enabled.
2016-05-16 21:57:31 +01:00
Roger A. Light
99ea5cab7c
Default to using port 8883 when using TLS.
2016-05-16 21:56:15 +01:00
Roger A. Light
030a21786d
Improve example.
2016-05-15 22:34:52 +01:00
Roger Light
dfeb2f9ba6
Merge pull request #141 from PierreF/large-queued-performance-2
...
Improve performance with lots of queued message
2016-05-15 22:31:35 +01:00
Roger Light
c711941526
Merge pull request #144 from anonymouse64/dev/cmake_improvements
...
CMake improvements
2016-05-14 23:05:49 +01:00
Roger A. Light
81cabb3257
Update for github.
2016-04-26 16:25:49 +01:00
Ian Johnson
a0a0cc3076
Renaming STATIC_LIB -> LIBMOSQUITTO_STATIC
...
Signed-off-by: Ian Johnson <ijohnson@wolfram.com>
2016-04-21 09:51:46 -05:00
Ian Johnson
3499c094dc
Putting the list of files into a variable C_SRC and modiftying the add_library calls to use this variable
...
Signed-off-by: Ian Johnson <ijohnson@wolfram.com>
2016-04-19 16:57:44 -05:00
Ian Johnson
93906b9dfd
We don't want to add any declaration properties for the static library, as the static library doesn't export or import anything, so when STATIC_LIB is defined the libmosq_EXPORT defines to nothing
...
Signed-off-by: Ian Johnson <ijohnson@wolfram.com>
2016-04-19 16:56:36 -05:00
Ian Johnson
13f28d1c1e
Adding the static library target, libmosquitto_static, to CMakeLists.txt so it gets installed, and when compiled STATIC_LIB gets defined for only the static library
...
Signed-off-by: Ian Johnson <ijohnson@wolfram.com>
2016-04-19 16:56:25 -05:00
Ian Johnson
87112a7e21
On Mac, we don't want to run /sbin/ldconfig as it doesn't exist
...
Signed-off-by: Ian Johnson <ijohnson@wolfram.com>
2016-04-19 16:56:10 -05:00
Ian Johnson
3163cf2d70
Only include man subdirectory if the DOCUMENTATION option is on
...
Signed-off-by: Ian Johnson <ijohnson@wolfram.com>
2016-04-19 16:55:51 -05:00
Tomas Novotny
fe93138197
Add default config path to systemd services. ( #139 )
...
Config file is installed by default, so I would expect that it will be used by
the systemd service. Add argument for the configuration to the services.
Signed-off-by: Tomas Novotny <novotny@rehivetech.com>
2016-04-19 22:38:44 +01:00
Pierre Fersing
18cc0f5fc7
Fix bugs introduced by previous commit
...
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2016-04-18 17:48:53 +02:00
Pierre Fersing
44f23252a0
Improve performance with lots of queued message
...
Split message queue in two queues: in-flight and queued to avoid the
need to iterate over all messages.
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2016-04-18 16:24:13 +02:00
Roger A. Light
62402f7b60
Ignore generated test files.
2016-03-19 21:29:48 +00:00
Roger A. Light
37dceb38f9
Fix some defects discovered by coverity.
2016-03-18 11:54:36 +00:00
Roger A. Light
70f2bea51f
Merging travis config changes across branches.
...
[ci skip]
2016-03-15 11:44:23 +00:00
Roger A. Light
09ea5cbf2c
mosquitto_db_dump can now output some client stats.
...
This may be useful for finding out which clients are using significant
amounts of persistence space.
2016-03-15 00:18:40 +00:00
Roger A. Light
556c629ab5
Don't use reserved names in header guards.
...
Closes #3 .
2016-03-13 18:43:13 +00:00
Roger A. Light
6c8c649ac2
More test fixes.
2016-03-13 08:23:02 +00:00
Roger A. Light
8906d67ad4
Default to MQTT v3.1.1 in tests.
2016-03-13 08:01:39 +00:00
Roger A. Light
1b190b14f1
Fix auth deferring with no pwfile defined.
2016-03-13 07:21:31 +00:00
Roger A. Light
db2e66c543
Reorganise functions into separate files as appropriate.
2016-03-12 21:49:48 +00:00
Roger A. Light
bd61d18e92
Small tidy up.
2016-03-12 21:43:29 +00:00
Matteo Croce
59c80d9197
Add MQTT URL scheme support
...
Add option -L to specify user, password, hostname, port and topic at once.
The URL must provided with the -L or --url in the form:
mqtt(s)://[username[:password]@]host[:port]/topic
Change-Id: Ia626a28981a38807a254ae32c6ffb29b122b8a28
Signed-off-by: Matteo Croce <matteo@openwrt.org>
2016-03-12 21:43:29 +00:00
Roger A. Light
62fa209eeb
Add tests for cmake builds and use on travis.
2016-03-12 20:29:32 +00:00
Roger A. Light
7f9db87f30
Makefile target for static compiled pub/sub clients.
2016-03-12 20:22:36 +00:00
Roger A. Light
6087d4bcb6
Fix incorrect calloc/mosquitto__free pair.
2016-03-12 13:27:25 +00:00
Roger A. Light
f6939d4cbb
Merge branch 'develop' of ssh://git.eclipse.org:29418/mosquitto/org.eclipse.mosquitto into develop
2016-02-09 23:03:34 +00:00
Roger A. Light
f5c4b837e0
Fix merge error.
2016-02-09 23:03:26 +00:00
Roger A. Light
d5abf5a18a
Outgoing connections can use any TLS version.
2016-02-09 23:02:46 +00:00
Roger A. Light
97e6ac22d8
Only increment inflight messages if the limit hasn't been reached.
2016-02-09 23:00:15 +00:00
Roger A. Light
26b015908e
Default to using MQTT v3.1.1.
2016-02-05 21:22:42 +00:00