Skip to content

Commit

Permalink
20190923
Browse files Browse the repository at this point in the history
  • Loading branch information
ldcsaa committed Sep 22, 2019
1 parent ae089f7 commit 4a29ee0
Show file tree
Hide file tree
Showing 1,794 changed files with 165,166 additions and 55,371 deletions.
1,408 changes: 1,036 additions & 372 deletions Doc/HP-Socket Class Diagram.uml

Large diffs are not rendered by default.

Binary file modified Doc/HP-Socket Development Guide.pdf
Binary file not shown.
Binary file modified Doc/HP-Socket HTTP Class Diagram.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Doc/HP-Socket SSL Class Diagram.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions Linux/Change-APIs.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@
# ======================================== #
HP-Socket v5.6.1 API Update List:
# ======================================== #
--------------------
1、HTTP:
--------------------
HP_HttpServer_SendWSMessage (UPDATE: delete 'lpszMask' parameter, 'pData' parameter change type to 'const BYTE*')
HP_HttpAgent_SendWSMessage (UPDATE: 'pData' parameter change type to 'const BYTE*')
HP_HttpClient_SendWSMessage (UPDATE: 'pData' parameter change type to 'onst BYTE*')

HP_HttpServer_SendChunkData (ADD)
HP_HttpAgent_SendChunkData (ADD)
HP_HttpClient_SendChunkData (ADD)

--------------------
2、SSL:
--------------------
enum En_HP_SSLSessionInfo (ADD)
typedef HP_Fn_SNI_ServerNameCallback (UPDATE: add parameter 'PVOID pContext')

HP_SSLServer_BindSSLServerName (ADD)
HP_SSL_DefaultServerNameCallback (ADD)

HP_SSLServer_AddSSLContextByMemory (ADD)
HP_SSLServer_SetupSSLContextByMemory (ADD)
HP_SSLAgent_SetupSSLContextByMemory (ADD)
HP_SSLClient_SetupSSLContextByMemory (ADD)
HP_SSLServer_GetSSLSessionInfo (ADD)
HP_SSLAgent_GetSSLSessionInfo (ADD)
HP_SSLClient_GetSSLSessionInfo (ADD)

# ======================================== #
HP-Socket v5.5.1 API Update List:
# ======================================== #
--------------------
Expand Down
40 changes: 37 additions & 3 deletions Linux/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,38 @@
==========================================================================================
v5.6.1 Update:
==========================================================================================

> SSL Update
-----------------
1. All SSL components add the following interface methods to support loading memory certificates:
1) Server: SetupSSLContextByMemory(), AddSSLContextByMemory()
2) Agent : SetupSSLContextByMemory()
3) Client: SetupSSLContextByMemory()
2. All SSL components add GetSSLSessionInfo() method to obtain information about SSL session.
3. SSL Server component provides a default SNI server domain name binding mechanism. In most cases, the application does not need to customize SNI callback function.
1) The default server domain name binding mechanism is enabled when the 'fnServerNameCallback' parameter value of SetupSSLContext() is nullptr.
2) BindSSLServerName() : Bind the server domain name to a specified certificate.
3) HP_SSL_DefaultServerNameCallback() : Default SNI callback function.

> HTTP Update
-----------------
1. The SendWSMessage() method of HTTP Server component delete 'lpszMask' parameter.
2. The 'pData' parameter type of the SendWSMessage() method for all HTTP components is changed to 'const BYTE*', so constants can be passed in.
3. All HTTP components add SendChunkData() method to send chunked data conveniently.

> UDP Update
-----------------
1. Optimize the UDP Cast component of Linux platform so that it behaves in accordance with the UDP Cast component of Windows platform.
2. Enhance IPv6 compatibility of all UDP components.
3. Automatically send a "close notification" datagram to the peer when the UDP Client/Server component is closing.

> Other Update
-----------------
1. jemalloc upgrade to version 5.2.1
2. openssl upgrade to version 1.1.1d.
3. Code optimization to improve stability

==========================================================================================
v5.5.3 Update:
==========================================================================================

Expand Down Expand Up @@ -163,7 +197,7 @@ v5.2.1 Update:
2. Agent: HTTP Agent, HTTPS Agent
3. Client: HTTP Client, HTTPS Client, HTTP Sync Client, HTTPS Sync Client

> Create Demos
> Create Demos:
-----------------
1. testecho-ssl: (SRC) SSL simple test echo server/agent/client
2. testecho-ssl-pfm: (SO) SSL performance test echo server/agent/client
Expand All @@ -172,7 +206,7 @@ v5.2.1 Update:
5. testecho-http: (SRC) HTTP simple test echo server/agent/client/sync-client
6. testecho-http-4c: (4C SO) HTTP simple test echo server/agent/client/sync-client

> Other Updates
> Other Updates:
-----------------
1. Version number revision: Use a unified version number for Windows & Linux distribution
2. Code optimization and knowing bug fixed
Expand All @@ -187,7 +221,7 @@ v1.0.0 Update:
2. Agent: TCP Agent, TCP Pull Agent, TCP Pack Agent
3. Client: TCP Client, TCP Pull Client, TCP Pack Client, UDP Client, UDP Cast

> Create Demos
> Create Demos:
-----------------
1. testecho: tcp simple test echo server/agent/client
2. testecho-pfm: tcp performance test echo server/agent/client
Expand Down
22 changes: 21 additions & 1 deletion Linux/build-android-ndk.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
@echo off

set CURPATH=%cd%
set PROJECT_PATH=.\project\android-ndk
set LIBS_OUT=.\lib\android-ndk
set OBJ_OUT=.\lib\android-ndk\obj


cd %~dp0

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

call ndk-build NDK_PROJECT_PATH=%PROJECT_PATH% NDK_LIBS_OUT=%LIBS_OUT% NDK_OUT=%OBJ_OUT% %*

call :cp_static_lib arm64-v8a
call :cp_static_lib armeabi-v7a
call :cp_static_lib x86_64
call :cp_static_lib x86

rd /s /q %OBJ_OUT%

cd %CURPATH%

exit /b 0

:cp_static_lib
xcopy /y /s /f %OBJ_OUT%\local\%1\*.a %LIBS_OUT%\%1
goto:eof
22 changes: 21 additions & 1 deletion Linux/build-android-ndk.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
#!/bin/bash

set -e

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 $@
PROJECT_PATH=./project/android-ndk
LIBS_OUT=./lib/android-ndk
OBJ_OUT=./lib/android-ndk/obj

function cp_static_lib
{
cp -f $OBJ_OUT/local/$1/*.a $LIBS_OUT/$1
}

rm -rf $LIBS_OUT

ndk-build NDK_PROJECT_PATH=$PROJECT_PATH NDK_LIBS_OUT=$LIBS_OUT NDK_OUT=$OBJ_OUT $@

cp_static_lib arm64-v8a
cp_static_lib armeabi-v7a
cp_static_lib x86_64
cp_static_lib x86

rm -rf $OBJ_OUT
2 changes: 1 addition & 1 deletion Linux/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ parse_args()
do_build()
{
C_LAN_OPTS="-c -x c -I $DEPT_INC_DIR -Wall -Wswitch -Wno-deprecated-declarations -Wempty-body -Wconversion -Wreturn-type -Wparentheses -Wno-pointer-sign -Wno-format -Wuninitialized -Wunreachable-code -Wunused-function -Wunused-value -Wunused-variable -fno-strict-aliasing -fpic -fvisibility=hidden -fexceptions -std=c11"
CPP_LAN_OPTS="-c -x c++ -I $DEPT_INC_DIR -Wall -Wno-reorder -Wswitch -Wno-deprecated-declarations -Wempty-body -Wconversion -Wreturn-type -Wparentheses -Wno-format -Wuninitialized -Wunreachable-code -Wunused-function -Wunused-value -Wunused-variable -fno-strict-aliasing -fpic -fthreadsafe-statics -fvisibility=hidden -fexceptions -frtti -std=c++14"
CPP_LAN_OPTS="-c -x c++ -I $DEPT_INC_DIR -Wall -Wno-class-memaccess -Wno-reorder -Wswitch -Wno-deprecated-declarations -Wempty-body -Wconversion -Wreturn-type -Wparentheses -Wno-format -Wuninitialized -Wunreachable-code -Wunused-function -Wunused-value -Wunused-variable -fno-strict-aliasing -fpic -fthreadsafe-statics -fvisibility=hidden -fexceptions -frtti -std=c++14"
LINK_OPTS="-Wl,--no-undefined -Wl,-L$DEPT_LIB_DIR -L$DEPT_LIB_DIR -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -shared -Wl,-Bsymbolic"
RELEASE_CFG_OPTS="-g0 -O3 -fomit-frame-pointer -DNDEBUG"
DEBUG_CFG_OPTS="-g2 -gdwarf-2 -O0 -fno-omit-frame-pointer -DDEBUG -D_DEBUG"
Expand Down
Loading

0 comments on commit 4a29ee0

Please sign in to comment.