Skip to content

Prevent missing source file errors caused by disabled macros #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 201 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
070771e
HP-Socket v 3.1.1
ldcsaa Dec 24, 2013
a11bde2
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Dec 24, 2013
b47b51e
HP-Socket v3.1.1 Released
ldcsaa Dec 24, 2013
a634d16
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Dec 24, 2013
b32bd41
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Dec 24, 2013
be8bfc8
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Jan 13, 2014
e599eb9
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Dec 24, 2013
d9d1271
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Dec 24, 2013
5dc9362
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Dec 24, 2013
5ee0c2a
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Jan 14, 2014
5612564
HP-Socket v3.1.3
ldcsaa Mar 29, 2014
6447166
Merge branch 'master' of github.com:ldcsaa/HP-Socket
ldcsaa Mar 29, 2014
83eef40
clear old other language demo
ldcsaa Apr 17, 2014
0bedf04
0417
ldcsaa Apr 17, 2014
d7c3d00
0407
ldcsaa Apr 17, 2014
b81e191
0417
ldcsaa Apr 17, 2014
7b7d7f6
0417
ldcsaa Apr 17, 2014
6e8b82d
20140427
ldcsaa Apr 26, 2014
0660e92
20140427
ldcsaa Apr 26, 2014
91e7108
20140427
ldcsaa Apr 26, 2014
55489c2
20140427
ldcsaa Apr 26, 2014
4fcd78e
20140427
ldcsaa Apr 26, 2014
4d35e50
20140427
ldcsaa Apr 26, 2014
660e980
20040427
ldcsaa Apr 27, 2014
6f7595b
20040427
ldcsaa Apr 27, 2014
078861c
20140428
ldcsaa Apr 28, 2014
dee1c00
20140507
ldcsaa May 6, 2014
d07938e
delete
ldcsaa May 11, 2014
5d1ba7d
20140511
ldcsaa May 11, 2014
bbab911
20140511
ldcsaa May 11, 2014
474885c
20140526
ldcsaa May 25, 2014
c171507
20140604
ldcsaa Jun 4, 2014
96032d0
20140604
ldcsaa Jun 4, 2014
6b0e640
20140604
ldcsaa Jun 6, 2014
d731b01
20140707
ldcsaa Jul 6, 2014
d2c5ea3
20140707
ldcsaa Jul 6, 2014
d6251b0
20140707
ldcsaa Jul 7, 2014
d3e903a
20140708
ldcsaa Jul 8, 2014
20d5bca
20140708
ldcsaa Jul 8, 2014
0c478d0
20140812
ldcsaa Aug 12, 2014
455edce
20140812
ldcsaa Aug 12, 2014
2f89905
20140812
ldcsaa Aug 12, 2014
919a6c3
20140812
ldcsaa Aug 13, 2014
668dd66
20140812
ldcsaa Aug 13, 2014
9a2f863
20140812
ldcsaa Aug 13, 2014
c724890
20140812
ldcsaa Aug 13, 2014
1019f46
20141208
ldcsaa Dec 7, 2014
b95bb5f
20141208
ldcsaa Dec 7, 2014
534126a
20141208
ldcsaa Dec 7, 2014
34f9fe3
20141208
ldcsaa Dec 8, 2014
975112d
20141227
ldcsaa Dec 27, 2014
37f51ff
20141227
ldcsaa Dec 28, 2014
193f979
20150125
ldcsaa Jan 25, 2015
a46b530
20151028
ldcsaa Jan 28, 2015
2cdb396
20150129
ldcsaa Jan 29, 2015
21412dc
20150202
ldcsaa Feb 2, 2015
08fa5ca
20150203
ldcsaa Feb 3, 2015
cf7d517
20150205
ldcsaa Feb 5, 2015
a1207e2
20150209
ldcsaa Feb 9, 2015
e14ed68
20151130
Nov 30, 2015
74f6824
20151130
Nov 30, 2015
ded870d
20151130
Nov 30, 2015
c4eba2d
20151201
Dec 1, 2015
6476ca2
20160327
ldcsaa Mar 27, 2016
8bbd5be
20160327
ldcsaa Mar 27, 2016
005e154
20160401
ldcsaa Mar 31, 2016
6c78a87
20160402
ldcsaa Apr 1, 2016
1106c9c
20160409
Apr 9, 2016
587689c
20160409
Apr 9, 2016
5f312bc
20160409
Apr 9, 2016
5c46195
20160409
ldcsaa Apr 9, 2016
e3f2803
20160410
ldcsaa Apr 9, 2016
b615862
20160420
Apr 20, 2016
df83997
20160420
Apr 20, 2016
198c03e
20160421
Apr 21, 2016
0b211d4
20160421
Apr 21, 2016
7450e29
20160421
Apr 21, 2016
498460d
20160421
Apr 21, 2016
b77aee1
20160421
ldcsaa Apr 21, 2016
8ca9a21
20160422
Apr 22, 2016
86de95a
20160510
May 10, 2016
8064475
20160510
May 10, 2016
5818be1
20160510
May 10, 2016
595cfdb
20160524
May 24, 2016
846d0e5
20160524
May 24, 2016
bf92346
20160701
Jul 1, 2016
61cd69d
20160701
Jul 1, 2016
3290c81
20160701
Jul 1, 2016
b73c6b3
20160701
Jul 1, 2016
7417178
20160704
Jul 4, 2016
b58c2d9
20160704
Jul 4, 2016
f5754f9
21060812
Aug 12, 2016
0a0de70
21060812
Aug 12, 2016
0ad5d32
20160819
ldcsaa Aug 29, 2016
e9098d2
20160820
ldcsaa Aug 29, 2016
e762e2f
20160830
Aug 30, 2016
f848078
20160830
Aug 30, 2016
0f29c34
20160830
Aug 30, 2016
b2a0d85
20161012
Oct 12, 2016
b59da77
20161012
Oct 12, 2016
982cedc
20161130
Nov 30, 2016
ab3fba2
20161130
Nov 30, 2016
f34f703
20161202
Dec 2, 2016
6cc8dd0
20170101
Dec 27, 2016
01dab3b
20170101
Dec 27, 2016
36be06a
20170101
Dec 28, 2016
63eca7a
20170118
Jan 18, 2017
01e78de
20170120
Jan 20, 2017
48035de
20170120
Jan 20, 2017
8a81324
Merge branch 'master' of https://github.com/ldcsaa/HP-Socket
Apr 13, 2017
2864aa9
20170413
Apr 13, 2017
c96a3a7
20170413
Apr 13, 2017
79702dd
20170419
Apr 17, 2017
2326d41
20170419
Apr 17, 2017
3b6c099
20170424
Apr 24, 2017
2880e68
20170424
Apr 24, 2017
e3b197f
20170715
Jul 15, 2017
a8a265b
20170715
Jul 15, 2017
3a02cfc
20170717
Jul 17, 2017
937f692
20170717
Jul 17, 2017
27b335a
20170821
Aug 21, 2017
5d37205
20170821
Aug 21, 2017
a12818b
20170821
Aug 21, 2017
54db647
20170827
Aug 28, 2017
042e14c
20170925
ldcsaa Sep 24, 2017
9a957c9
20170926
Sep 26, 2017
cb6d688
20171205
Dec 5, 2017
8e60ab3
20171205
Dec 5, 2017
b24c162
20171205
Dec 5, 2017
6ae8da7
20171205
Dec 5, 2017
96a3fa2
Update README.md
ldcsaa Dec 12, 2017
082f6a3
20171214
Dec 14, 2017
1a9188b
20171214
Dec 14, 2017
e8ab250
20171214
Dec 14, 2017
35a9177
1214
Dec 14, 2017
f64bb22
20171214
Dec 14, 2017
6d4562a
20180201
ldcsaa Jan 31, 2018
e3b2531
Update README.md
ldcsaa Feb 3, 2018
dd6e78a
20180503
May 3, 2018
9544e06
20180503
May 3, 2018
c0ef5f8
20180520
May 19, 2018
3e6b499
20180520
May 19, 2018
a106380
20180526
ldcsaa May 26, 2018
b3909b7
20180625
Jun 25, 2018
c9650a5
20180625
Jun 25, 2018
2e72315
20180905
Sep 4, 2018
73c919b
20180905
Sep 4, 2018
0c77d21
20181101
Nov 1, 2018
b32439c
20181101
Nov 1, 2018
cc15817
20181102
Nov 2, 2018
a81f255
20181005
Nov 5, 2018
38fe74a
20181105
Nov 5, 2018
b199da9
20181203
Dec 3, 2018
7351504
20181203
Dec 3, 2018
b3f6a1c
20181206
ldcsaa Dec 6, 2018
ff5eede
20181207
Dec 7, 2018
b846a7b
20190304
Mar 4, 2019
758e384
20190414
ldcsaa Apr 13, 2019
ad0b202
20190414
ldcsaa Apr 13, 2019
965c274
20190414
ldcsaa Apr 13, 2019
7d7df69
20190414
ldcsaa Apr 13, 2019
c449b74
20190414
ldcsaa Apr 14, 2019
bbca407
20190414
ldcsaa Apr 14, 2019
305465a
20190415
Apr 15, 2019
ecc071e
20190415
ldcsaa Apr 15, 2019
7191940
Merge branch 'master' of https://github.com/ldcsaa/HP-Socket
ldcsaa Apr 15, 2019
0ca7e19
20190415
Apr 16, 2019
ec556a7
20190417
Apr 17, 2019
64c9154
20190420
ldcsaa Apr 20, 2019
48e969d
20190420
ldcsaa Apr 20, 2019
6536ede
20190422
Apr 22, 2019
462a43d
20190422
ldcsaa Apr 22, 2019
70d356e
20190424
Apr 24, 2019
7645eac
20190507
May 7, 2019
e42138c
20190511
ldcsaa May 11, 2019
48add50
20190522
ldcsaa May 21, 2019
4903ee5
20190522
May 22, 2019
3a79026
20190523
May 23, 2019
ac06885
20190701
Jul 1, 2019
d2aec6f
20190702
Jul 2, 2019
4d50bfb
20190704
ldcsaa Jul 3, 2019
91f9e44
20190704
Jul 4, 2019
ae089f7
20190709
Jul 9, 2019
4a29ee0
20190923
ldcsaa Sep 22, 2019
5151e52
20190923
ldcsaa Sep 22, 2019
69ba53f
20190923
ldcsaa Sep 22, 2019
a363c55
20191104
ldcsaa Nov 4, 2019
a02d050
20191105
Nov 5, 2019
6aec97b
20191203
Dec 3, 2019
4416afe
20191203
Dec 3, 2019
c5c293e
20191204
Dec 4, 2019
7cd0577
20191209
ldcsaa Dec 9, 2019
8f78daa
20191218
ldcsaa Dec 18, 2019
7f83bf3
20200104
ldcsaa Jan 4, 2020
9a58c2d
20200109
ldcsaa Jan 9, 2020
1a9e9f6
20200222
ldcsaa Feb 22, 2020
81d18c7
20200420
ldcsaa Apr 20, 2020
60d4456
20200425
ldcsaa Apr 25, 2020
cd91070
20200429
ldcsaa Apr 29, 2020
a822e7e
20200506
ldcsaa May 6, 2020
0ab051b
Prevent missing resource file errors caused by disabled macros
Oct 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
20190522
  • Loading branch information
ldcsaa committed May 21, 2019
commit 48add50210dfca2ba2d1cace7173631be2b8e93b
Binary file modified Doc/HP-Socket Development Guide.pdf
Binary file not shown.
16 changes: 16 additions & 0 deletions Linux/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
==========================================================================================
v5.5.2 Update:
==========================================================================================

> UDP Upadate
-----------------
1. Relax the maximum message length limit of UDP component, the maximum value of SetMaxDatagramSize() method can be set to 64KB.
2. Relax the maximum transmission unit length limit of ARQ UDP component. The maximum value of SetMaxTransUnit() method can be set to 64KB.

> Android NDK Update
-----------------
1. provided shell script 'build-android-ndk.sh' to build Android NDK libs.
2. provided shell script 'demo/build-android-ndk-demo.sh' to build Android NDK demo executable files.
3. provided Android NDK binary library files in the distribution package.
4. Android NDK libs are full support SSL and ICONV features now.

==========================================================================================
v5.5.1 Update:
==========================================================================================

Expand Down
41 changes: 38 additions & 3 deletions Linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,41 @@ Usage: install.sh [...O.P.T.I.O.N.S...]

*    Note: The **complle.sh** build script depends on the **script/**, **src/**, **include/**, and **dependent/** directories of the distribution; the **install.sh** install script depends on the **script/**, **include/**, and **lib/** directories of the distribution, if you want to install the sample executable files, it also need to depends on the **demo/Release/** directory.*
## Android NDK
    HP-Socket provides Android NDK compilation script (script directory: *project/android-ndk/*). After installing and configuring the NDK, enter the compilation script directory and execute the *ndk-build* command to compile. By default, the compilation script will compile all of ABI's dynamic library and static library libs supported by the current NDK. If you have special needs, please modify the *jni/Application.mk* file.

*    Note: The Android NDK compilation script provided by HP-Socket disables **SSL** and **ICONV** support, so the user applications need to define the **_SSL_DISABLED** and **_ICONV_DISABLED** macros.*
    HP-Socket provides Android NDK build script __*build-android-ndk.sh*__ (__*build-android-ndk.bat*__ on Windows). After installing and configuring the NDK, execute *build-android-ndk.sh* to build it. By default, the build script will build all of ABI's dynamic libraries and static libraries supported by the current NDK, and output the library files to *lib/android-ndk/* directory. If you have special needs, please set the corresponding command line parameters for *build-android-ndk.sh*.

    Build HP-Socket libraries use default settings:
```
$ cd HP-Socket/Linux
$ ./build-android-ndk.sh
```
### ABIs
    By default, the build script generates libraries for all non-deprecated ABIs. You can modify the **APP_ABI** parameter for *build-android-ndk.sh* to generate libraries for specific ABIs.

    (for example: only generate *armeabi-v7a* and *x86* libraries):
```
$ ./build-android-ndk.sh APP_ABI=armeabi-v7a,x86
```
### Features
    By default, all optional features (*UDP, SSL, HTTP, ZLIB, ICONV*) were enabled. You can set one or more ***_XXX_DISABLED=true*** parameters for *build-android-ndk.sh* to disable corresponding features.
- *_UDP_DISABLED=true*   (disable UDP)
- *_SSL_DISABLED=true*   (disable SSL)
- *_HTTP_DISABLED=true*  (disable HTTP)
- *_ZLIB_DISABLED=true*  (disable ZLIB)
- *_ICONV_DISABLED=true* (disable ICONV)

    (for example: disable *SSL* and *ICONV* features):
```
$ ./build-android-ndk.sh _SSL_DISABLED=true _ICONV_DISABLED=true
```
*    Note: If you disable one or more features, you need to define corresponding macros while compiling your application. for example: If you disable the **SSL** and **ICONV** features of HP-Socket library, when you compile the application that uses this library, need to define macro like: __-D_SSL_DISABLED -D_ICONV_DISABLED__.*
### Other Options
    For more details of *build-android-ndk.sh* command, please refer to the [*ndk-build official documentation*](https://developer.android.com/ndk/guides/ndk-build).
    The following example demonstrates: building *armeabi-v7a* and *x86_64* ABI targets; disabling *UDP*, *ZLIB*, and *ICONV* features; library files output to *lib/android-ndk/* directory; obj files output to *lib/Android-ndk/obj/* directory:
```
$ ./build-android-ndk.sh APP_ABI=armeabi-v7a,x86_64 \
_UDP_DISABLED=true \
_ZLIB_DISABLED=true \
_ICONV_DISABLED=true \
NDK_LIBS_OUT=./lib/android-ndk \
NDK_OUT=./lib/android-ndk/obj
```
8 changes: 8 additions & 0 deletions Linux/build-android-ndk.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@echo off

set CURPATH=%cd%
cd %~dp0

call ndk-build NDK_PROJECT_PATH=./project/android-ndk NDK_LIBS_OUT=./lib/android-ndk NDK_OUT=./lib/android-ndk/obj %*

cd %CURPATH%
5 changes: 5 additions & 0 deletions Linux/build-android-ndk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

cd $(cd "$(dirname "$0")"; pwd)

ndk-build NDK_PROJECT_PATH=./project/android-ndk NDK_LIBS_OUT=./lib/android-ndk NDK_OUT=./lib/android-ndk/obj $@
108 changes: 108 additions & 0 deletions Linux/demo/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
LOCAL_PATH := $(call my-dir)
ROOT_PATH := $(LOCAL_PATH)
DEPT_PATH := $(LOCAL_PATH)/../dependent/android-ndk/$(TARGET_ARCH_ABI)
DEPT_INC_PATH := $(DEPT_PATH)/include
DEPT_LIB_PATH := $(DEPT_PATH)/lib
HP_LIB_PATH := $(LOCAL_PATH)/../lib/android-ndk/$(TARGET_ARCH_ABI)

MY_C_INCLUDES := $(LOCAL_PATH)/../include
MY_CFLAGS := -w -fpic -fvisibility=hidden -fno-strict-aliasing -Wall -Wextra -Wswitch -Wno-deprecated-declarations -Wno-empty-body -Wno-conversion -Wno-sign-conversion -Wno-sign-compare -Wreturn-type -Wparentheses -Wno-pointer-sign -Wno-format -Wno-missing-braces -Wuninitialized -Wunreachable-code -Wunused-function -Wunused-value -Wunused-variable -Wno-unused-parameter -Wno-missing-field-initializers
MY_CPPFLAGS := -fexceptions -frtti -fthreadsafe-statics -Wno-reorder -Wno-inconsistent-missing-override
MY_LDFLAGS := -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-Bsymbolic
MY_WHOLE_STATIC_LIBRARIES := ssl crypto iconv
MY_LDLIBS := -lz -lm

# local lib : iconv
include $(CLEAR_VARS)
LOCAL_MODULE := iconv
LOCAL_SRC_FILES := $(DEPT_LIB_PATH)/libiconv.a
LOCAL_EXPORT_C_INCLUDES := $(DEPT_INC_PATH)
include $(PREBUILT_STATIC_LIBRARY)

# local lib : crypto
include $(CLEAR_VARS)
LOCAL_MODULE := crypto
LOCAL_SRC_FILES := $(DEPT_LIB_PATH)/libcrypto.a
LOCAL_EXPORT_C_INCLUDES := $(DEPT_INC_PATH)
include $(PREBUILT_STATIC_LIBRARY)

# local lib : ssl
include $(CLEAR_VARS)
LOCAL_MODULE := ssl
LOCAL_SRC_FILES := $(DEPT_LIB_PATH)/libssl.a
LOCAL_EXPORT_C_INCLUDES := $(DEPT_INC_PATH)
include $(PREBUILT_STATIC_LIBRARY)

# local lib : hpsocket
include $(CLEAR_VARS)
LOCAL_MODULE := hpsocket
LOCAL_SRC_FILES := $(HP_LIB_PATH)/libhpsocket.a
include $(PREBUILT_STATIC_LIBRARY)

# local lib : hpsocket4c
include $(CLEAR_VARS)
LOCAL_MODULE := hpsocket4c
LOCAL_SRC_FILES := $(HP_LIB_PATH)/libhpsocket4c.a
include $(PREBUILT_STATIC_LIBRARY)

# local lib : hpsocket_so
include $(CLEAR_VARS)
LOCAL_MODULE := hpsocket_so
LOCAL_SRC_FILES := $(HP_LIB_PATH)/libhpsocket.so
include $(PREBUILT_SHARED_LIBRARY)

# local lib : hpsocket4c_so
include $(CLEAR_VARS)
LOCAL_MODULE := hpsocket4c_so
LOCAL_SRC_FILES := $(HP_LIB_PATH)/libhpsocket4c.so
include $(PREBUILT_SHARED_LIBRARY)

### build all demos ###
include $(call all-makefiles-under,$(ROOT_PATH))

### build single demo ###

# #testecho
# include $(ROOT_PATH)/testecho/Android.mk

# #testecho-arq
# include $(ROOT_PATH)/testecho-arq/Android.mk

# #testecho-arq-pfm
# include $(ROOT_PATH)/testecho-arq-pfm/Android.mk

##testecho-http
#include $(ROOT_PATH)/testecho-http/Android.mk

# #testecho-http-4c(4c so)
#include $(ROOT_PATH)/testecho-http-4c/Android.mk

##testecho-lib(so & 4c so)
#include $(ROOT_PATH)/testecho-lib/Android.mk

##testecho-pack
#include $(ROOT_PATH)/testecho-pack/Android.mk

##testecho-pfm
#include $(ROOT_PATH)/testecho-pfm/Android.mk

##testecho-pull
#include $(ROOT_PATH)/testecho-pull/Android.mk

##testecho-ssl
# include $(ROOT_PATH)/testecho-ssl/Android.mk

##testecho-ssl-pack(4c so)
#include $(ROOT_PATH)/testecho-ssl-pack/Android.mk

##testecho-ssl-pfm(so)
#include $(ROOT_PATH)/testecho-ssl-pfm/Android.mk

##testecho-ssl-pull(so)
#include $(ROOT_PATH)/testecho-ssl-pull/Android.mk

##testecho-udp
#include $(ROOT_PATH)/testecho-udp/Android.mk

##testecho-udp-pfm
#include $(ROOT_PATH)/testecho-udp-pfm/Android.mk
6 changes: 6 additions & 0 deletions Linux/demo/Application.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
APP_ABI := all # armeabi-v7a arm64-v8a x86 x86_64
APP_PLATFORM := android-21
APP_CFLAGS := -std=c11 -DNDEBUG -g0 -O3 -fomit-frame-pointer
APP_CPPFLAGS := -std=c++14
APP_STL := c++_static
APP_BUILD_SCRIPT := Android.mk
Binary file modified Linux/demo/Release/x64/hp-testecho-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-arq-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-arq-pfm-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-arq-pfm-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-arq-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-http-4c-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-http-4c-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-http-4c-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-http-4c-syncclient.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-http-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-http-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-http-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-http-syncclient.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-lib-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-lib-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-lib-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-pack-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-pack-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-pack-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-pfm-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-pfm-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-pfm-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-pull-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-pull-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-pull-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-ssl-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-ssl-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-ssl-pack-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-ssl-pack-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-ssl-pack-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-ssl-pfm-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-ssl-pfm-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-ssl-pfm-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-ssl-pull-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-ssl-pull-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-ssl-pull-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-ssl-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-udp-cast.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-udp-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-udp-pfm-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-udp-pfm-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x64/hp-testecho-udp-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-arq-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-arq-pfm-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-arq-pfm-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-arq-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-http-4c-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-http-4c-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-http-4c-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-http-4c-syncclient.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-http-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-http-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-http-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-http-syncclient.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-lib-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-lib-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-lib-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-pack-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-pack-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-pack-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-pfm-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-pfm-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-pfm-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-pull-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-pull-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-pull-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-ssl-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-ssl-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-ssl-pack-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-ssl-pack-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-ssl-pack-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-ssl-pfm-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-ssl-pfm-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-ssl-pfm-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-ssl-pull-agent.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-ssl-pull-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-ssl-pull-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-ssl-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-udp-cast.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-udp-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-udp-pfm-client.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-udp-pfm-server.exe
Binary file not shown.
Binary file modified Linux/demo/Release/x86/hp-testecho-udp-server.exe
Binary file not shown.
8 changes: 8 additions & 0 deletions Linux/demo/build-android-ndk-demo.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@echo off

set CURPATH=%cd%
cd %~dp0

call ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=./Application.mk NDK_LIBS_OUT=./Release/android-ndk NDK_OUT=./Release/android-ndk/obj %*

cd %CURPATH%
6 changes: 6 additions & 0 deletions Linux/demo/build-android-ndk-demo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

cd $(cd "$(dirname "$0")"; pwd)

ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=./Application.mk NDK_LIBS_OUT=./Release/android-ndk NDK_OUT=./Release/android-ndk/obj $@

26 changes: 26 additions & 0 deletions Linux/demo/testecho-arq-pfm/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
LOCAL_PATH := $(call my-dir)

# target lib : hp-testecho-arq-pfm-server
include $(CLEAR_VARS)
LOCAL_MODULE := hp-testecho-arq-pfm-server
LOCAL_SRC_FILES := server/server.cpp \
../global/helper.cpp
LOCAL_WHOLE_STATIC_LIBRARIES := $(MY_WHOLE_STATIC_LIBRARIES) hpsocket
LOCAL_C_INCLUDES := $(MY_C_INCLUDES)
LOCAL_CFLAGS := $(MY_CFLAGS) -D_USE_HP_LIB -D_NEED_SSL -D_NEED_HTTP
LOCAL_CPPFLAGS := $(MY_CPPFLAGS)
LOCAL_LDLIBS := $(MY_LDLIBS)
include $(BUILD_EXECUTABLE)

# target lib : hp-testecho-arq-pfm-client
include $(CLEAR_VARS)
LOCAL_MODULE := hp-testecho-arq-pfm-client
LOCAL_SRC_FILES := client/client.cpp \
../global/helper.cpp
LOCAL_WHOLE_STATIC_LIBRARIES := $(MY_WHOLE_STATIC_LIBRARIES) hpsocket
LOCAL_C_INCLUDES := $(MY_C_INCLUDES)
LOCAL_CFLAGS := $(MY_CFLAGS) -D_USE_HP_LIB -D_NEED_SSL -D_NEED_HTTP
LOCAL_CPPFLAGS := $(MY_CPPFLAGS)
LOCAL_LDLIBS := $(MY_LDLIBS)
include $(BUILD_EXECUTABLE)

26 changes: 26 additions & 0 deletions Linux/demo/testecho-arq/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
LOCAL_PATH := $(call my-dir)

# target lib : hp-testecho-arq-server
include $(CLEAR_VARS)
LOCAL_MODULE := hp-testecho-arq-server
LOCAL_SRC_FILES := server/server.cpp \
../global/helper.cpp
LOCAL_WHOLE_STATIC_LIBRARIES := $(MY_WHOLE_STATIC_LIBRARIES) hpsocket
LOCAL_C_INCLUDES := $(MY_C_INCLUDES)
LOCAL_CFLAGS := $(MY_CFLAGS) -D_NEED_SSL -D_NEED_HTTP
LOCAL_CPPFLAGS := $(MY_CPPFLAGS)
LOCAL_LDLIBS := $(MY_LDLIBS)
include $(BUILD_EXECUTABLE)

# target lib : hp-testecho-arq-client
include $(CLEAR_VARS)
LOCAL_MODULE := hp-testecho-arq-client
LOCAL_SRC_FILES := client/client.cpp \
../global/helper.cpp
LOCAL_WHOLE_STATIC_LIBRARIES := $(MY_WHOLE_STATIC_LIBRARIES) hpsocket
LOCAL_C_INCLUDES := $(MY_C_INCLUDES)
LOCAL_CFLAGS := $(MY_CFLAGS) -D_NEED_SSL -D_NEED_HTTP
LOCAL_CPPFLAGS := $(MY_CPPFLAGS)
LOCAL_LDLIBS := $(MY_LDLIBS)
include $(BUILD_EXECUTABLE)

69 changes: 69 additions & 0 deletions Linux/demo/testecho-http-4c/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
LOCAL_PATH := $(call my-dir)

# target lib : hp-testecho-http-4c-server
include $(CLEAR_VARS)
LOCAL_MODULE := hp-testecho-http-4c-server
LOCAL_SRC_FILES := server/server.cpp \
../global/helper.cpp \
../../src/common/crypto/Crypto.cpp \
../../src/common/FileHelper.cpp \
../../src/common/FuncHelper.cpp \
../../src/common/SysHelper.cpp \
../../src/common/Thread.cpp
LOCAL_C_INCLUDES := $(MY_C_INCLUDES)
LOCAL_CFLAGS := $(MY_CFLAGS) -D_USE_HP_LIB -D_NEED_SSL -D_NEED_HTTP
LOCAL_CPPFLAGS := $(MY_CPPFLAGS)
LOCAL_LDLIBS := $(MY_LDLIBS)
LOCAL_SHARED_LIBRARIES:=hpsocket4c_so
include $(BUILD_EXECUTABLE)

# target lib : hp-testecho-http-4c-client
include $(CLEAR_VARS)
LOCAL_MODULE := hp-testecho-http-4c-client
LOCAL_SRC_FILES := client/client.cpp \
../global/helper.cpp \
../../src/common/crypto/Crypto.cpp \
../../src/common/FileHelper.cpp \
../../src/common/FuncHelper.cpp \
../../src/common/SysHelper.cpp \
../../src/common/Thread.cpp
LOCAL_C_INCLUDES := $(MY_C_INCLUDES)
LOCAL_CFLAGS := $(MY_CFLAGS) -D_USE_HP_LIB -D_NEED_SSL -D_NEED_HTTP
LOCAL_CPPFLAGS := $(MY_CPPFLAGS)
LOCAL_LDLIBS := $(MY_LDLIBS)
LOCAL_SHARED_LIBRARIES:=hpsocket4c_so
include $(BUILD_EXECUTABLE)

# target lib : hp-testecho-http-4c-agent
include $(CLEAR_VARS)
LOCAL_MODULE := hp-testecho-http-4c-agent
LOCAL_SRC_FILES := agent/agent.cpp \
../global/helper.cpp \
../../src/common/crypto/Crypto.cpp \
../../src/common/FileHelper.cpp \
../../src/common/FuncHelper.cpp \
../../src/common/SysHelper.cpp \
../../src/common/Thread.cpp
LOCAL_C_INCLUDES := $(MY_C_INCLUDES)
LOCAL_CFLAGS := $(MY_CFLAGS) -D_USE_HP_LIB -D_NEED_SSL -D_NEED_HTTP
LOCAL_CPPFLAGS := $(MY_CPPFLAGS)
LOCAL_LDLIBS := $(MY_LDLIBS)
LOCAL_SHARED_LIBRARIES:=hpsocket4c_so
include $(BUILD_EXECUTABLE)

# target lib : hp-testecho-http-4c-syncclient
include $(CLEAR_VARS)
LOCAL_MODULE := hp-testecho-http-4c-syncclient
LOCAL_SRC_FILES := syncclient/syncclient.cpp \
../global/helper.cpp \
../../src/common/crypto/Crypto.cpp \
../../src/common/FileHelper.cpp \
../../src/common/FuncHelper.cpp \
../../src/common/SysHelper.cpp \
../../src/common/Thread.cpp
LOCAL_C_INCLUDES := $(MY_C_INCLUDES)
LOCAL_CFLAGS := $(MY_CFLAGS) -D_USE_HP_LIB -D_NEED_SSL -D_NEED_HTTP
LOCAL_CPPFLAGS := $(MY_CPPFLAGS)
LOCAL_LDLIBS := $(MY_LDLIBS)
LOCAL_SHARED_LIBRARIES:=hpsocket4c_so
include $(BUILD_EXECUTABLE)
49 changes: 49 additions & 0 deletions Linux/demo/testecho-http/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
LOCAL_PATH := $(call my-dir)

# target lib : hp-testecho-http-server
include $(CLEAR_VARS)
LOCAL_MODULE := hp-testecho-http-server
LOCAL_SRC_FILES := server/server.cpp \
../global/helper.cpp
LOCAL_WHOLE_STATIC_LIBRARIES := $(MY_WHOLE_STATIC_LIBRARIES) hpsocket
LOCAL_C_INCLUDES := $(MY_C_INCLUDES)
LOCAL_CFLAGS := $(MY_CFLAGS) -D_NEED_SSL -D_NEED_HTTP
LOCAL_CPPFLAGS := $(MY_CPPFLAGS)
LOCAL_LDLIBS := $(MY_LDLIBS)
include $(BUILD_EXECUTABLE)

# target lib : hp-testecho-http-client
include $(CLEAR_VARS)
LOCAL_MODULE := hp-testecho-http-client
LOCAL_SRC_FILES := client/client.cpp \
../global/helper.cpp
LOCAL_WHOLE_STATIC_LIBRARIES := $(MY_WHOLE_STATIC_LIBRARIES) hpsocket
LOCAL_C_INCLUDES := $(MY_C_INCLUDES)
LOCAL_CFLAGS := $(MY_CFLAGS) -D_NEED_SSL -D_NEED_HTTP
LOCAL_CPPFLAGS := $(MY_CPPFLAGS)
LOCAL_LDLIBS := $(MY_LDLIBS)
include $(BUILD_EXECUTABLE)

# target lib : hp-testecho-http-agent
include $(CLEAR_VARS)
LOCAL_MODULE := hp-testecho-http-agent
LOCAL_SRC_FILES := agent/agent.cpp \
../global/helper.cpp
LOCAL_WHOLE_STATIC_LIBRARIES := $(MY_WHOLE_STATIC_LIBRARIES) hpsocket
LOCAL_C_INCLUDES := $(MY_C_INCLUDES)
LOCAL_CFLAGS := $(MY_CFLAGS) -D_NEED_SSL -D_NEED_HTTP
LOCAL_CPPFLAGS := $(MY_CPPFLAGS)
LOCAL_LDLIBS := $(MY_LDLIBS)
include $(BUILD_EXECUTABLE)

# target lib : hp-testecho-http-syncclient
include $(CLEAR_VARS)
LOCAL_MODULE := hp-testecho-http-syncclient
LOCAL_SRC_FILES := syncclient/syncclient.cpp \
../global/helper.cpp
LOCAL_WHOLE_STATIC_LIBRARIES := $(MY_WHOLE_STATIC_LIBRARIES) hpsocket
LOCAL_C_INCLUDES := $(MY_C_INCLUDES)
LOCAL_CFLAGS := $(MY_CFLAGS) -D_NEED_SSL -D_NEED_HTTP
LOCAL_CPPFLAGS := $(MY_CPPFLAGS)
LOCAL_LDLIBS := $(MY_LDLIBS)
include $(BUILD_EXECUTABLE)
Loading