This project is intended to record programs written in C++ on Android working normally. I used a simple web server to express how it works. We needed an example of a simple but different library as possible. So we implemented a web server using [Restbed]. Also note that the 1984 port is designated as the default port in the code. The actual equipment tested is [Qualcomm Snapdragon 865 development kit equipment].
Build tests are conducted every Tuesday using the Crontab function in Github Action.
HDK Server Result |
---|
$ git clone https://github.com/Piorosen/Restbed-based-Android-Web-Server
$ cd Restbed-based-Android-Web-Server
$ chmod +x bootstrap.sh
$ ./bootstrap.sh
$ make build
$ adb devices | grep device
# default value: ./build/chacha, because project name is chacha.
# adb push ${executable file: chacha} /data/local/tmp
$ adb push ./build/chacha /data/local/tmp
$ adb shell chmod +x /data/local/tmp/chacha
$ adb shell /data/local/tmp/chacha
$ curl --request POST 'http://{Android IP Address}:1984/resource' \
--data-raw 'test: android C++ server.'
Server Result | Build |
---|---|