High-performance TCP & amp; UDP Communication Framework HP-Socket v3.3.1 officially released, high-performance tcp

Source: Internet
Author: User

High-performance TCP & UDP Communication Framework HP-Socket v3.3.1 officially released, high-performance tcp

HP-Socket is a set of common high-performance TCP/UDP Communication frameworks, including server components, client components, and Agent components. It is widely used in TCP/UDP communication systems in various application scenarios, provides C/C ++, C #, Delphi, E (easy language), Java, Python, and other programming language interfaces. HP-Socket fully encapsulates the communication layer, and applications do not have to pay attention to any details of the communication layer. HP-Socket provides an API Interface Based on The Event Notification model, it can be easily and efficiently integrated into new and old applications.

In order to allow users to easily and quickly learn and use HP-Socket and quickly master the design ideas and usage methods of the framework, a large number of Demo examples (such: PUSH model examples, PULL model examples, Performance Testing examples, and other programming language examples ). HP-Socket is currently running on Windows and will be supported across platforms in the future.

----------------------------------------------------------------

Versatility

  • HP-Socket is only responsible for receiving and sending byte streams and does not participate in Protocol parsing of applications.
  • HP-Socket interacts with applications through interfaces and is completely decoupled. Any application that implements the HP-Socket interface specification can seamlessly integrate HP-Socket.

Ease of use

Ease of use is crucial to all general frameworks. If it is too difficult to use, it is better to write a new one. Therefore, the HP-Socket interface is designed very simple and unified.

HP-Socket completely encapsulates all the underlying communication details, and applications do not have to or cannot intervene in underlying communication operations. The communication Connection is abstracted as the Connection ID, which is the unique identifier of the Connection provided to the application to process different connections.

High Performance

As the underlying general framework, HP-Socket performance is a key indicator and cannot be a bottleneck of the system. HP-Socket makes the following design decisions based on factors such as performance, Application Scenario, complexity, and ease of use:

  • Client components:Based on the Event Select communication model, the communication operation is performed in a separate thread to avoid interference with the main thread or other threads. Each component object manages a Socket connection.
  • Server components:Based on the IOCP communication model and combined with the cache pool and Private Heap technologies, it supports ultra-large-scale connections to achieve efficient memory management in high-concurrency scenarios.
  • Agent components:For application scenarios such as proxy servers or transit servers, the server itself initiates large-scale connections to other servers as a client. An Agent component object can manage multiple Socket connections at the same time; the Agent and Server components adopt the same technical architecture and can be used as Agent servers or client components of intermediate servers.

Scalability

The application can adjust the performance parameters of HP-Socket according to different capacity requirements, communication scale and resource conditions (for example: number of worker threads, cache pool size, sending mode, and receiving mode) to optimize resource configuration, so as to meet application requirements without excessive waste of resources.

   (Project homepage: Click Here, click here)

* ** V3.3.1 update ***

> Component Interface adjustment:

-----------------

> Added the UdpCast communication component:

-----------------

> Upgrade description:

----------------- * ** Update v3.2.3 ***

> Common-src optimization:

-----------------

> Upgrade description:

----------------- * ** V3.2.2 update ***

> Added several help methods:

-----------------

> Upgrade description:

----------------- * ** V3.2.1 update ***

> Added the TcpAgent/TcpPullAgent communication component:

-----------------

> Added HPSocket for Java SDK:

-----------------

> Optimize the data sending and receiving policies:

----------------- * ** Update v3.1.3 ***

> Added demos for other languages:

-----------------

> Bug Fix:

----------------- * ** V3.1.2 update ***

> Modify the trigger rule of the OnClose ()/OnError () event of the Server component:

----------------- * ** V3.1.1 update ***

> Added the dynamic link library HPSocket4C. dll for exporting pure C functions:

-----------------

> Fully enable the Buffer Pool cache mechanism:

----------------- * ** V3.0.2 update ***

 > Compile HP-Socket as a dynamic link library:

-----------------

* ** V3.0.1 update ***

 > Added the UDP communication component:

-----------------

> Code reconstruction and optimization:

-----------------

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.