欢迎访问 生活随笔!

凯发k8官方网

当前位置: 凯发k8官方网 > 编程语言 > java >内容正文

java

java论文翻译-凯发k8官方网

发布时间:2024/10/8 java 0 豆豆
凯发k8官方网 收集整理的这篇文章主要介绍了 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.

总结

以上是凯发k8官方网为你收集整理的java论文翻译_java技术(外文文献翻译)的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得凯发k8官方网网站内容还不错,欢迎将凯发k8官方网推荐给好友。

网站地图