Java Network programming

Source: Internet
Author: User

Network : Linking computers from different regions to a LAN, metropolitan area network, internet

IP address : Each device in the network will have a unique digital ID is the IP address, one IP address can correspond to multiple domain names, a domain name can only correspond to one IP address

Port : Used to differentiate the software on the computer from 2 bytes in 0-65535 the same network protocol port number cannot be the same as 1024 the port number below is reserved to the service provider's best not to use

URI: Unified Resources

URL: Unified Resource Targeting

Url= protocol + Host domain + Port + resource file hosting the resource

Protocol for data transfer

TCP protocol: First establish the link and then carry out the data transmission security efficiency low-oriented link; Ensure that the receiving party obtains all the data sent by the sender completely and correctly;

TCP has no data size limitations, and once the connection is established, the sockets on both sides can transmit large amounts of data in a uniform format.

UDP protocol: There is no need to establish link efficiency when communicating with each other; the datagram sent by the sender does not necessarily reach the receiving party in the same order;

UDP transmits data with a size limit, and each transmitted datagram must be limited to 64KB.

data transfer : First package and then disassemble

Java Network programming

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.