无忧论文网 · 始于1999 · 学术论文辅导与论文发表推荐服务

Java语言编写的基于Web的电子聊天室

栏目
论文
具体类型
本科毕业论文
语言
中文
用途
范文参考
更新
分类标签
自然科学计算机科学计算机软件
原站著录信息
原编号
lw200611022123115346
原文字数
19,000 字
原文件格式
DOC
原库登记日期
2006-11-02

摘要

Java语言编写的基于Web的电子聊天室 摘 要 此电子聊天室系统是基于Web浏览器下,用Java语言开发实现的。此设计主要分为服务器端(Server)程序和客户端(Client)程序,设计的重点在服务器端(Server)程序。在设计过程中,涉及到了一些关于Internet协议、Web服务器、网络通信等网络方面的知识;着重用到了Java应用程序设计接口(Application Programming Interface,简称API)中的一些类和方法,如:Thread(线程)类、Streams(流)、Socket(套…

Java语言编写的基于Web的电子聊天室

摘 要

此电子聊天室系统是基于Web浏览器下,用Java语言开发实现的。此设计主要分为服务器端(Server)程序和客户端(Client)程序,设计的重点在服务器端(Server)程序。在设计过程中,涉及到了一些关于Internet协议、Web服务器、网络通信等网络方面的知识;着重用到了Java应用程序设计接口(Application Programming Interface,简称API)中的一些类和方法,如:Thread(线程)类、Streams(流)、Socket(套接字)类等编程方面的知识;在Java开发工具箱(Developers Kit)环境下,对所编写的聊天室程序进行修改和编译,并运行聊天服务器(chat server)程序;把聊天室客户端(chat client)程序编译后的.class文件嵌入网页中,利用浏览器就可对客户端(chat client)程序进行访问了。此外,此设计还讲述了关于Web服务器的几种常见的技术,如:CGI和ISAPI等及线程与进程之间的差别。

关键字:聊天室、服务器、客户、线程、套接字

Abstract

This Electronic Chat Room System is based on Web Explorer, Developed and realized by the programming language Java. This System is composed of a Server program and a Client program, and the emphasis is the Server program. In course of the design of the System, Some knowledge such as Internet protocol, Web Server and Network communication are involved; The most imported thing to this design is some classes and methods in the Application Programming Interface (API) of Java, They are Thread class, Streams and Socket class about these classes; Correcting and compiling the Chat Room program under the environment of Java Developers Kits (JDK), and run the Chat Server program, Compile the Chat Client program and insert the resultant file into the Web page, and the you can call the Client by the Explorer. This tractate introduces some well-known techniques such as CGI and ISAPI, and the difference between Thread and Process.

Keyword: Chat Room, Server, Client, Thread, Socket.

(英文)

Internet

With the Internet, you can

Exchange textual and other messages with any of millions of people in business, academia, government, and other organizations in more than fifty countries.

Retrieve software, documents, pictures, weather maps, library catalogs, and other information from any of thousands of repositories worldwide.

Use communications and shared resources to collaborate with people in the same office or on another continent; to complete old tasks such as correspondence more quickly and conveniently; and to perform tasks not possible at all before the Internet.

The community of users of the Internet is the most important reason for connecting to the Internet. That community is supported by a spectrum of services, such as electronic mail, file transfer, and file locators. All computer networks that exchange electronic mail form the Matrix. Matrix users can participate in some Internet communications. Internet users have access to many more services, and the Internet is the core and main support of the Matrix. Join the Internet and you join the center of the networked world.

The Internet supports a global business, academic, and personal community of more than ten million people in more than fifty countries. Its users include artists, academics, and administrators, business people, bureaucrats, and bedfellows, nonprofits and monopolies, the U.S.Congress. The offices of the governor of Texas and of the president of the United States are now on the Internet; they use it to access worldwide resources and to communicate with constituents. They, like the Internet’s traditional academic users, and like its newer business users (who are now in the majority), don’t want to do without this global information utility and online community. The Internet has become popular in the press recently, as the public discovers the utility of this network and the value of its community. Many Internet users wouldn’t take a job that did not include Internet access, and many employers seek employees familiar with the Internet. Why do all these people use the Internet?

1. Communications

The most popular use of the Internet is to exchange messages among people with electronic mail. You can communicate with tens of millions of people worldwide, with the clarity of a letter and much of the immediacy of the telephone, yet without having to stamp an envelope or play telephone tag. We write a lot of articles, and we can tell you the difference between a publication that accepts submissions by electronic mail and one that doesn’t is often the difference between a few ninths to publication and a year to publication; this is an example of the degree to which online communications can increase efficiency[1]. Also, a week’s worth of business paper correspondence can be written, sent, and delivered in a day with electronic mail, without retyping, printing, stamps, express mail fees, or waiting a week for delivery. Event within a department, among workers in the same building, electronic mail is quicker, cheaper, and more convenient than paper memos, and less disturbing to productive work than telephone calls.

With electronic mailing lists, you can send a message to dozens or thousands of people at the same time, without photocopying memos or making multiple fax telephone calls. Thousands of such mailing lists discuss subjects ranging from genealogy to investment in petroleum companies. Some mailing lists carry online newsletters and journals. Some of the journals are referred, and are just as good as traditional academic paper journals, but faster. Mailing lists are distributed from various parts of the Matrix, but many of the most interesting and largest mailing lists are distributed from the Internet.

For event larger discussions, USENET news permits tens or hundreds of thousands of participants, providing true many-to-many conferencing, a service that does not exist in traditional media[2]. This service is like four thousand newspapers consisting entirely of columnists transmitter as well as a receiver, or like a meeting of two million people where everyone can not only speak at once, but can also be heard.

2. Resource Sharing

Over the Internet you can retrieve software, essays, data, and programs from thousands of distribution points across the world. To many companies, the free software available over the Internet is alone worth the cost of connection. Many companies provide free software over the Internet as marking, or as a service to their customers. A growing number of companies provide for –pay services over the Internet, as well. You can retrieve information with other networks, too, but usually only more slowly, often only through mail, sometimes only from one machine, and usually less conveniently.

You can connect across the Internet to a computer in another room, department, or country, and log in there as if you were directly connected. With proper permission on each end, you can use this service to access supercomputers or to log into your own office computer from your home or while you are travelling. The Internet is a general purpose network, with multiple services multiplexed over the same links for multiple users.

The concept of distributed resource sharing is new to many personal computer or mainframe users. You don’t need a wheelbarrow to carry floppy disks around to isolated PCs anymore. Instead, you can make the information available over the Internet, where anyone who needs it can get it.

3. Resource Discovery

Finding an appropriate file, document, host, or person among millions of hosts and many gigabytes of public repositories can be a problem. Fortunately, Internet resource discovery services have been developed in recent years to help solve this problem. Internet resource discovery services include:

. An online index of thousands of repositories

. Full-document keyword lookup to thousands of other repositories

. Hundreds of major library catalogs, including the Library of Congress and many major university catalogs

. Online bookstores

. Dozens of specialized databases

4. The Community

People use the Internet to g

全文与附件

提交申请后,可在会员中心查看原件和附件的查找进度。

申请查询全文与附件