文档介绍:基于socket的网络聊天室
作者姓名:
专业名称:计算机科学与技术
指导教师:
摘要
八十年代初,美国政府的高级研究工程机构(ARPA)给加利福尼亚大学Berkeley分校提供了资金,让他们在UNIX操作系统下实现TCP/IP协议。在这个项目中,研究人员为TCP/IP网络通信开发了一个API(应用程序接口)。这个API称为Socket接口(套接字)今天,SOCKET接口是TCP/IP网络最为通用的API,上进行应用开发最为通用的API.。
WINSOCK 是在Windows进行网络通信编程的API接口,也是Windows网络编程的事实标准。在网络编程中最常用的方案便是客户机/服务器模型(C/S)。本文提出了在客户机/服务器模型下用WINSOCK实现的聊天室软件的方案。随着网络技术的发展及人们生活的需求,网络聊天已越来越受到人们的亲睐。本课题是开发一个基于TCP的局域网聊天室系统,采用软件工程的方法,综合运用数据库技术、程序设计技术、网络技术。研究的主要内容是如何利用TCP套接字编写网络聊天程序,主要完成了客户端的号码注册,发送信息与显示在线用户及服务器端的广播信息,,让分布在不同地点、。考虑到对用户的管理及安全性问题,增加了管理数据库功能。适用于局域网使用的网络聊天工具,其操作简单,灵活性好,运行也比较稳定。
关键字:C/S 套接字 TCP
Abstract
The early 80s, the . government's Advanced Research Project agency (ARPA)
to the University of California, Berkeley provided funding to enable them to achieve in the UNIX operating system, TCP / IP protocol. In this project, researchers for the TCP / munication Development an API (application program interface). This API is called Socket Interface (socket). Today, SOCKET interface is a TCP / work of the mon API, is the application development on the mon API.
munication in the Windows API programming interface, is the de facto standard work programming. work programming is the monly used program client / server model. In this paper, the client / server model implemented using WINSOCK chat room software the development working technology and the living demand of people,chating work is more and more acceptable by people .This topic is going to talk about that to develop the local area chatroom system which based on UDP , It adopts the method of software engineer ,and uses the technology of database , process design work synthetichy .The prinary content of researching is how to use the UDP sleeve to joint the procedure piling work chat, it is main to finish the task of the number’s application of clients, transmiting the message,displaying the online users and the server’s broadcast message,