Dreaming of Java Fundamentals in IBM-network programming

Source: Internet
Author: User


Now let's talk about the final content: Network programming:
1):TCPthe thread is communicating with the thread! The internal implementation mechanism is this:There is a thread that listens to a port first. Then assume that there isSocketWhen the connection comes up, the server generates aSocketobjects to communicate with them! 2): byURLobject to get the input stream for a particular site. (but this input stream is also relative to the program!) Returned is aInputStreamsub-class!)
URL url = new URL ("http://www.baidu.com");
HttpURLConnection urlconnet = (httpurlconnection) url.openconnection ();

InputStream in = Urlconnet.getinputstream (); 3): In network programming, the data is communicated through bothSocketobject to get, and then all of them areIOof knowledge. 4): There are also non-connectedUDP, throughDatagramand theDatagrampacketTo achieve!

Mind map: This is the Intelligence podcast Chengdu Java Training Center students struggle for their dreams.

Dreaming of Java Fundamentals in IBM-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.