web技术概论第一周作业

本文介绍了Netscape插件应用编程接口(NPAPI)的技术细节及其在网络浏览器中的应用。NPAPI是一种允许开发者为浏览器创建插件的API,最初由Netscape Navigator引入,并被其他浏览器采纳。文章探讨了NPAPI属于分布式对象技术的原因,并分析了其优缺点。

HW1.
Wiki gives a definition to “Netscape plug-in” technology. It’s atechnology that offers an interface for web developers. It says,”Netscape Plugin Application Programming Interface (NPAPI) is an application programming interface (API) that allow plug-ins (more specifically, browser extensions) to be developed for web browsers.”It was first developed for Netscape browsers, starting in 1995 with Netscape Navigator 2.0, but was subsequently adopted by other browsers.
From my point of view, I think “Netscape plug-in” belongs to the third category, say, it belongs to distribute object technologies.
First, it’s notbasic web protocol suite like URL, HTML, HTTP, MIME and CGI. Because it was developed to help programmers handle browsers more easily. It has nothing to do with basic information transfer through internet.On the other hand, This technology is developed based on browser,which means it should take a higher layer than basic web protocol suite.
Secondly, it doesn’t aim at creating quality web services more effectively like java and javascript. It can actually use javascript to program.
Thirdly,It belongs to distribute object technologies. Because it is a model to handle the communication between browser and user process.It has similar function like ActiveX.

HW2.
Advantages: First, connection to different servers is swift. Second, internet connection is released fast so that a server can offer service to many users at a time.
Disadvantages: First, every time before we get a document, we need to request a TCP link between browser and client. It waste a lot of time. Second, communication is unstable because we connect and disconnect frequently.
A web server cannot exactly know how many browsers are reading its document. As mentioned above, the link is disconnected automatically. It has nothing to do with client or server behavior. Although a user may be reading the document, it doesn’t have to connect to the server. The Server cannot know about that.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值