基于TCP協议的VB聊天程序.docVIP

  • 5
  • 0
  • 约7.03千字
  • 约 25页
  • 2016-11-27 发布于重庆
  • 举报
基于TCP協议的VB聊天程序

课程设计 学生姓名 学 号 院 系 专 业 指导教师 2012年9月15号 摘 要 在任务一中,利用Visual Basic语言中的WinSock控件设计一个基于TCP协议的通讯程序。整个程序包括服务器和客户端两个部分。要实现多情况下的In task one, using Visual Basic language in WinSock control to design a protocol based on the TCP communication procedures. The whole procedure including the server and client in two parts. In order to realize the multiple computers connected in case of receiving, sending the string, refers to multiple client connected to a server to server, for in the end to communicate. When you run the server, and then in the other computer running the client, server host IP, connect to the server, between the client and the client can realize simple communication function. In the second task, using Visual Basic language to design a simple calculator. The whole system is in the response of mouse Click events to achieve. In the design of the interface input you want to calculate data and operation symbol, can get the right result. Key words: Winsock, TCP protocol, calculator, Visual Basic 目录 前 言 1 第一章 概述 1 1.1课程设计的课题 1 1.2课程设计工作进程 1 1.3设计要求 1 第二章 任务一 2 2.1 Vb Winsock控件及TCP协议介绍 2 2.3.1 TCP通信协议的基础 3 2.3.2 客户端与服务器的实现过程 4 2.3.3程序的编写 6 2.3.4生成可执行文件 9 2.4结果测试 9 2.5 遇到的问题及解决方案 11 2.5.1 遇到的问题 11 2.5.2 解决方案 11 第三章 任务二 12 3.1 设计思想 12 3.2 程序设计步骤 12 3.2.1 界面设置 12 3.2.2 生成可执行文件 14 3.3 结果测试 14 3.4 遇到的问题及解决方案 17 3.4.1 遇到的问题 17 3.4.2 解决方案 17 第四章 总结与展望 18 参考文献 18 致谢 19 前 言 Visual Basic(VB)是一种由微软公司开发的包含协助开发环境的事件驱动编程语言。从任何标准来说,VB都是世界上使用人数最多的语言——不仅是盛赞VB的开发者还是抱怨VB的开发者的数量。它源自于BASIC编程语言。VB拥有图形用户界面(GUI)和快速应用程序开发(RAD)系统,可以轻易的使用DAO、RDO、ADO连接数据库,或者轻松的创建ActiveX控件。程序员可以轻松的使用VB提供的组件快速建立一个应用程序。 随着计算机技术和通讯技术的发展,计算机网络已渗透到各个应用领域,其中最突出的,便是以TCP/ IP 协议为核心的Internet 网络发展最为迅速。因此,计算机应用程序的开发也由传统单机处理模式,转向以多机通信为主的网络应用开 发。Microsoft 面向对象的程序开发工具VisualBasic 提供了基于Windows Socket s 网络编程接口的Winsock 控件,利用该控件程序员可以更方便、快捷的开发基于TCP/ IP 的应用程序。 其使用方法也大同小异,在此我们

文档评论(0)

1亿VIP精品文档

相关文档