Java Implementation of udt and udtjava implementation

Source: Internet
Author: User

Java Implementation of udt and udtjava implementation

What is the udt protocol?

I will not answer the question. I can search for it online. It has always been c ++. the java implementation has not been modified for a long time.

After testing, the java version has some problems and has been fixed and uploaded to csdn.

In addition, the package is further encapsulated based on the actual application;

Because data has been sent and the client is closed directly, the final data may not be sent again.

Therefore, it is cached for 30 seconds.

At the same time, the basic operation error is locked, and the object is not closed after use or is not used after the object is created, and object management is performed.

Therefore, you must avoid repeatedly creating connections and disabling them. This will exhaust the port and do not comply with network programming;

Another way is to encapsulate a layer by yourself and share the client at the underlying layer, so that you can constantly create objects, create connections, close them, and make full use of resources.

I will not encapsulate it;

Git will upload the file as well. My name is jud.

The source code is the modified online Code and is directly encapsulated. You need to search for the initial source code directly. My source code will be updated continuously.

Https://github.com/jinyuttt/judt.git

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.