文档介绍:摘要
随着计算机网络技术的飞速发展,网络技术越来越受到人们的重视,它已逐渐渗入我们生活各个层面。人们也越来越重视网络的应用,特别是在及时性通讯发面,相对于E-MAIL,即时聊天拥有具有双向互动性和即时性,目前都有很多的流行即时聊天软件,如QQ,MSN,新浪UC,网易POPO,YAHOO通等,为人们的通信提供了极大的方便。但是这些都是互联网中实现的,而局域网则有很大的限制。
本文对局域网聊天编程技术进行了简要分析,研究了WinSock编程通信机制,如winpcap、原始套接字。文中首先分析了TCP/IP和网络聊天软件的原理,并介绍了C/S工作模式,然后研究了WinSock编程通信机制。本文的目标是基于WinSock技术实现一个网络聊天通信程序,其工作机制模仿即时通信软件的基本功能,包括申请帐号,登陆,密码验证,聊天室,私聊等。采用TCP/IP原理,分别为客户端和服务器端完成基本数据配置,实现网络聊天功能。在设计过程中,主要采用VC++,ACCESS数据库环境,使用C++语言进行程序的编写,程序通过调试运行并且经过完善后,基本实现了设计的目标,能很好地在局域网环境实现即时聊天。
ABSTRACT
With the rapid development work technology, more and more attention take work technology, it has gradually infiltrated all aspects of our lives. There is also increasing emphasis work applications, particularly in the timeliness munications to lead the way, as opposed to E-MAIL, IM has a two-way interactivity and immediacy, there is now a lot of popular instant messaging software such as QQ, MSN , Sina UC, NetEase POPO, YAHOO-talk, for people munications provided great convenience. But these are implemented in the , and LAN have considerable limitations.
This programming technique on the LAN chat a brief analysis of the WinSock munication mechanisms, such as Winpcap, raw socket. The paper first analyzes the TCP / IP and chat software, theory, and introduced the C/S mode, then munication mechanism of the WinSock programming. This goal is work technology based on WinSock munication program, the working mechanism of imitating real-munication software's basic features, including an account, login, password authentication, chat rooms, private chat and so on. Using TCP / IP Principles, namely client and server-side data plete the basic configuration work chat. In the design process, mainly in VC++ programming environment, ACCESS database environment, using C++ language program writing, debugging and running programs, and through the perfection, the basic design to achieve the goal, to achieve well in the LAN environment real-time chat.
目录
摘要 I
ABSTRACT II
目录