文档介绍:毕业设计(论文)
设计(论文)题目:基于TCP/IP上的Socket编程接口技术及应用
2008年 6月 15 日
目录
摘要 III
ABSTRACT IV
第一章绪论 1
引言 1
研究的目的及意义 1
研究的方法 2
第二章套接字的理论知识 3
TCP/IP网络模型和协议特点 3
网间进程通信 4
端口通信的特点 5
半相关和全相关 6
客户/服务器模式 6
服务器主动连接步骤 6
客户请求连接步骤 7
面向连接和无连接 7
第三章套接字的描述及编程原理 9
套接字的形象描述 9
套接字的概念 10
如何开发一个Server-Client模型的程序 11
TCP/IP的socket提供的套接字的类型。 12
基本套接字系统调用 13
创建套接字 13
指定本地地址 14
建立套接字连接 14
监听连接 16
数据传输 16
关闭套接字 17
套接字客户/服务器编写流程 18
18
客户机程序实现的过程 19
第四章 SOCKET在网络通信中的应用 23
实时数据网络程序描述服务器程序设计 23
客户端程序设计 24
实时数据传输帧格式 26
结论 35
参考文献 37
致谢 39
基于TCP/IP上的Socket编程接口技术及应用
摘要
本文对TCP/IP协议核心与应用程序的关系进行了分析,提出了利用Windows Sockets套接字编程的一般方法。在此基础要解决基于TCP/IP协议下的网络通信问题,并且能够准确方便地在服务器和客户端实时收发文件和互相通信。本文首先详细介绍了套接字的理论知识,通过对套接字编程技术概念的详解和套接字编程原理的详细描述,来建立完整的套接字技术的理论知识体系,其中主要介绍了在TCP/IP网络应用中,通信的两个进程间相互作用的主要模式是客户/服务器模式(Client/Server model),即客户向服务器发出服务请求,服务器接收到请求后,提供相应的服务。然后再通过具体的应用实例及其部分源代码更深入的理解基于TCP/IP网络协议上的套接字技术的编程和通信原理,其中客户端/。
关键词:TCP/IP协议,套接字,通信,网络编程
Based on the TCP / IP on the Socket Technology and Application Programming Interface
Abstract
The paper analyses the relationship between TCP/IP protocol and application, describes the application method of socket in detail, solved the problem munication on the foundation of TCP/IP protocol, and introduces its procedures instream-gram mode. This paper details the socket of theoretical knowledge, by the socket programming and technical concept of Detailed Explanation socket programming a detailed description of principle, to establish plete theoretical knowledge of the socket technology system, which mainly , Introduced a TCP / work applications, munications interaction between the two processes are the main mode of client / server model (Client / Server model), that is, customer service requests sent to the server, the server receives a request, provide the corresponding Services. And the