摘要:本程序用vb6.0实现了一个基于TCP/UDP通讯协议较为简单的网络调试工具,它是为了方便网络开发调试而设计的,本调试工具插入到客户端和服务器之间,起到转发数据包的作用。Winsoke 控件是本次设计最主要的控件,掌握此控件是本次设计的关键。24243
本片论文,我对winsoke控件做了详细的介绍,包括如何添加此控件以及它常用属性。在设计之初,我首先用写了两个简单的聊天程序,分别是服务端和客户端,使它们能够实现传输字符串的功能。成功之后,我将两个软件合并为一个,并添加了需要的控件,实现了定时发送,十吹冰进制发送和显示,打开和记录到文件等功能。完成了本次设计。 毕业论文关键字: wincoke;vb;通讯协议;网络调试
The design of network communication software
Abstract: This program use vb6.0 implements a TCP/UDP protocol based on simple network debugging tool. It is for the convenience of network development and design, The debugging tool is inserted between the client and server, plays the role of data packet forwarding. The Winsoke is the design of the main control, this control is the key to the woke. In this thesis, I make a detailed description of the winsoke control, including how to add this control as well as its common attributes. First i had wrote two simple chat program, respectively is the server and the client,so that they can achieve transmission string functions. After the success of the two software, I will merge into one, and add the need for control, realized the timing transmission, sixteen hexadecimal send and display, open and recorded files and other functions.I had finish my job.
Key Words: winsoke; vb ; Communication protocol; network debugging
目录
设计总说明 0
1.引言 1
2.主要知识介绍 1
2.1WINSOCK控件介绍 1
2.2 TCP和UDP协议介绍 3
2.2 .1 TCP/IP协议介绍 3
2.2 .2 整体架构概述 3
2.2 .3 TCP/IP的协议 4
2.3 VB的简单介绍 6
2.3.1 VB的发展史 6
2.3.2 VB的特点 6
2.3.3 Visual Basic 版本简介 7
2.3.4 Visual BASIC 6.0的启动与退出 7
3.网络通信的实现 8
3.1初步实现服务器和客户端的通信 8
3.2将服务端和客户端在一个窗体中实现 14
3.3通信协议的选择 17
3.4自动发送文本信息 20
3.5十吹冰进制数的收发转换 22
3.6 文件载入和数据的保存 25
4.结论 27
致谢 28
参考文献 29
附录 30