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

Source: Internet
Author: User

High-performance TCP & UDP Communication Framework HP-Socket v3.2.2 officially released, 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.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:

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


RFC No. Corresponding to TCP/IP Protocol composition of Multiple Protocol groups in fact, the TCP user data report Protocol (also known as the TCP Transport Control Protocol depends on the host layer Protocol first) emphasize that the fourth layer of the OSI network is called TCP transmission control protocol; TCP/IP transmission protocol; 6. The meaning of the two TCP Protocols is different) TCP depends on the connection-oriented transmission service to transmit data in time segments for host exchange data must be established. bit stream communication is used, that is, data is transmitted as a non-structured byte stream, and the dependency is obtained through the specified sequence number per TCP transmission field. the layer-4 TCP/IP of the OSI reference model uses the IP network interconnection function to provide the data transmission IP address to stop the packets on the network, while the TCP is responsible for confirming that the packets are in compliance with the IP operation: handshaking process, packet management, traffic control, error detection and processing (Control) according to the order of serial numbers for non-sequential packets in the new order of TCPRFC documents RFC793, RFC791, RFC1700
What are the common TCP Protocols? What are the differences between TCP Tahoe, TCP Reno, TCP NewReno, TCP Sack, and HSTCP, XCP, VCP, and fast tcp? Currently, high-performance TCP protocol is commonly used in wired networks. At present, some research points are also confirmed that the use of TCP protocol in wireless networks will certainly be different from the use of TCP protocol in wired networks.

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.