Get the App
SLTechnology News&Howtos  ›  Development  › 

How to update the high-performance cross-platform network communication framework HP-Socket 5.6.1

Shulou Source: shulou.com Published: 2022-06-02 05:25:15 10月02日 Update

Today, I would like to talk to you about how to update the high-performance cross-platform network communication framework HP-Socket 5.6.1, which may not be well understood by many people. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

V5.6.1 update

I. SSL component updates

All SSL components add the following interface methods to support loading memory certificates

1) Server:SetupSSLContextByMemory (), AddSSLContextByMemory () 2) Agent:SetupSSLContextByMemory () 3) Client:SetupSSLContextByMemory ()

All SSL components add a GetSSLSessionInfo () method to obtain information about SSL sessions.

The SSL Server component provides a default SNI server domain name binding mechanism, and in most cases applications do not have to customize the SNI callback function

1) enable the default server domain name binding mechanism when the 'fnServerNameCallback' parameter value of SetupSSLContext () is nullptr. 2) BindSSLServerName (): bind the server domain name to the specified certificate 3) HP_SSL_DefaultServerNameCallback (): default SNI callback function

II. Update of HTTP components

The SendWSMessage () method of the HTTP Server component removes the lpszMask parameter

The pData parameter type of the SendWSMessage () method of all HTTP components is changed to const BYTE*, so you can pass in constants

All HTTP components add the SendChunkData () method to easily send Chunked data

III. Update of UDP components

Optimize the UDP Cast components of the Linux platform to keep the behavior consistent with the UDP Cast components of the Windows platform

Improve the IPv6 compatibility of all UDP components

Automatically sends a "shutdown Notification" Datagram to the peer when the UDP Client/Server component shuts down

IV. Other updates

Upgrade jemalloc to version 5.2.1

Upgrade OpenSSL to version 1.1.1d

Code optimization to improve stability

HP-Socket component list

Basic component

SSL component

HTTP component

After reading the above, do you have any further understanding of how to update the high-performance cross-platform network communication framework HP-Socket 5.6.1? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Tags: Components updates methods content parameters domain names servers services frameworks networks network communications high performance communications functions platforms data mechanisms versions certificates upgrades Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Information Linux Docker vpn