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, Socke无忧论文 【http://www.uklunwen.com】t.
(英文) 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 no |
|