Add SimpleClientServer App.
authorLarry Sachs <larry.j.sachs@intel.com>
Mon, 9 Jan 2017 01:00:38 +0000 (17:00 -0800)
committerRick Bell <richard.s.bell@intel.com>
Mon, 9 Jan 2017 19:29:50 +0000 (19:29 +0000)
commit3d99aa73931ef50110a73585d3e498c969b83c92
tree61eb50cc3a35f1f7de0a91724e8e45aa871ba539
parentb448470ec53d1d816131fa2a93eda9398beb79de
Add SimpleClientServer App.

Combines SimpleServer and SimpleClient into a single app.
If there are errors, return code is non-zero.

To build:
$ scons TARGET_TRANSPORT=IP SECURED=0 RELEASE=1 BUILD_JAVA=ON

To run:
$ export LD_LIBRARY_PATH="<iotivity>/out/linux/x86_64/release/"
$ java -cp java/examples-java/simpleclientserver/build/libs/simpleclientserver.jar:\
java/iotivity-linux/build/libs/iotivity-linux.jar org.iotivity.base.examples.SimpleClientServer ;\
echo result code = $?

Change-Id: I8f4bcd04ecd41518694b1e9901b7dcc84da4c6fd
Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16239
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
java/examples-java/settings.gradle
java/examples-java/simpleclientserver/.gitignore [new file with mode: 0644]
java/examples-java/simpleclientserver/build.gradle [new file with mode: 0644]
java/examples-java/simpleclientserver/src/main/assets/oic_svr_db_client.json [new file with mode: 0644]
java/examples-java/simpleclientserver/src/main/java/org/iotivity/base/examples/ServerLight.java [new file with mode: 0644]
java/examples-java/simpleclientserver/src/main/java/org/iotivity/base/examples/SimpleClient.java [new file with mode: 0644]
java/examples-java/simpleclientserver/src/main/java/org/iotivity/base/examples/SimpleClientServer.java [new file with mode: 0644]
java/examples-java/simpleclientserver/src/main/java/org/iotivity/base/examples/SimpleLight.java [new file with mode: 0644]
java/examples-java/simpleclientserver/src/main/java/org/iotivity/base/examples/SimpleServer.java [new file with mode: 0644]