日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > java >内容正文

java

java论文翻译_Java技术(外文文献翻译)

發布時間:2024/10/8 java 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 java论文翻译_Java技术(外文文献翻译) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

內容介紹

網絡編程

歷史上的網絡編程都傾向于困難、復雜,而且極易出錯。

程序員必須掌握與網絡有關的大量細節,有時甚至要對硬件有深刻的認識。一般地,我們需要理解連網協議中不同的“層”(Layer)。而且對于每個連網庫,一般都包含了數量眾多的函數,分別涉及信息塊的連接、打包和拆包;這些塊的來回運輸;以及握手等等。這是一項令人痛苦的工作。

Java最出色的一個地方就是它的“無痛苦連網”概念。有關連網的基層細節已被盡可能地提取出去,并隱藏在JVM以及Java的本機安裝系統里進行控制。我們使用的編程模型是一個文件的模型;事實上,網絡連接(一個“套接字”)已被封裝到系統對象里,所以可象對其他數據流那樣采用同樣的方法調用。除此以外,在我們處理另一個連網問題——同時控制多個網絡連接——的時候,Java內建的多線程機制也是十分方便的。

Network programming

Historically, programming across multiple machines has been error-prone, difficult, and complex.

The programmer had to know many details about the network and sometimes even the hardware. You usually needed to understand the various “layers” of the networking protocol, and there were a lot of different functions in each different networking library concerned with connecting, packing, and unpacking blocks of information; shipping those blocks back and forth; and handshaking. It was a daunting task.

One of Java’s great strengths is painless networking. The Java network library designers have made it quite similar to reading and writing files, except that the “file” exists on a remote machine and the remote machine can decide exactly what it wants to do about the information you’re requesting or sending. As much as possible, the underlying details of networking have been abstracted away and taken care of within the JVM and local machine installation of Java. The programming model you use is that of a file; in fact, you actually wrap the network connection (a “socket”) with stream objects, so you end up using the same method calls as you do with all other streams. In addition, Java’s built-in multithreading is exceptionally handy when dealing with another networking issue: handling multiple connections at once.

總結

以上是生活随笔為你收集整理的java论文翻译_Java技术(外文文献翻译)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。