-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
1,661 additions
and
581 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "Builds for Linux" | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install doxygen | ||
- name: Build | ||
run: | | ||
rm -rf build.paho | ||
mkdir build.paho | ||
cd build.paho | ||
echo "pwd $PWD" | ||
cmake -DPAHO_BUILD_STATIC=FALSE -DPAHO_BUILD_SHARED=TRUE -DCMAKE_BUILD_TYPE=Debug -DPAHO_WITH_SSL=TRUE -DOPENSSL_ROOT_DIR= -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=TRUE -DPAHO_HIGH_PERFORMANCE=TRUE .. | ||
cmake --build . | ||
- name: Start test broker | ||
run: | | ||
git clone https://github.com/eclipse/paho.mqtt.testing.git | ||
cd paho.mqtt.testing/interoperability | ||
python3 startbroker.py -c localhost_testing.conf & | ||
- name: Start test proxy | ||
run: | | ||
python3 test/mqttsas.py & | ||
- name: run tests | ||
run: | | ||
cd build.paho | ||
ctest -VV --timeout 600 | ||
- name: clean up | ||
run: | | ||
killall python3 || true | ||
sleep 3 # allow broker time to terminate and report | ||
- name: package | ||
run: | | ||
cd build.paho | ||
cpack --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "Builds for MacOS" | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
brew update | ||
brew install doxygen | ||
- name: Build | ||
run: | | ||
rm -rf build.paho | ||
mkdir build.paho | ||
cd build.paho | ||
echo "pwd $PWD" | ||
cmake -DPAHO_BUILD_STATIC=FALSE -DPAHO_BUILD_SHARED=TRUE -DCMAKE_BUILD_TYPE=Debug -DPAHO_WITH_SSL=TRUE -DOPENSSL_ROOT_DIR=/usr/local/opt/[email protected] -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=TRUE -DPAHO_HIGH_PERFORMANCE=TRUE .. | ||
cmake --build . | ||
- name: Start test broker | ||
run: | | ||
git clone https://github.com/eclipse/paho.mqtt.testing.git | ||
cd paho.mqtt.testing/interoperability | ||
python3 startbroker.py -c localhost_testing.conf & | ||
- name: Start test proxy | ||
run: | | ||
python3 test/mqttsas.py & | ||
- name: run tests | ||
run: | | ||
cd build.paho | ||
ctest -VV --timeout 600 | ||
- name: clean up | ||
run: | | ||
killall python3 || true | ||
sleep 3 # allow broker time to terminate and report | ||
- name: package | ||
run: | | ||
cd build.paho | ||
cpack --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ build_script: | |
nmake | ||
ctest -T test -VV | ||
ctest -T test -VV | ||
cd .. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ SET(common_src | |
Base64.c | ||
SHA1.c | ||
WebSocket.c | ||
Proxy.c | ||
) | ||
|
||
IF (NOT PAHO_HIGH_PERFORMANCE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#if WINVER <= _WIN32_WINNT_WIN8 | ||
#define HTON(x) hton((uint64_t) (x), sizeof(x)) | ||
uint64_t hton(uint64_t x, size_t n) | ||
{ | ||
uint64_t y = 0; | ||
size_t i = 0; | ||
|
||
for (i=0; i < n; ++i) | ||
{ | ||
y = (y << 8) | (x & 0xff); | ||
x = (x >> 8); | ||
} | ||
return y; | ||
} | ||
#define htons(x) (uint16_t) HTON(x) | ||
#define htonl(x) (uint32_t) HTON(x) | ||
#define htonll(x) (uint64_t) HTON(x) | ||
|
||
#define ntohs(x) htons(x) | ||
#define ntohl(x) htonl(x) | ||
#define ntohll(x) htonll(x) | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.