-
client-server
多协议文件传输c/s网络应用设计与实现,程序用 TCP/UDP 两个协议模拟多协议服务器。首先服务器端要将两种协议的套接字创建好,并且监听 TCP 端口的连接。必要时使用select函数来进行多连接处理和非阻塞处理。而客户端直接可以按照发送的地址和端口号来进行通讯。
首先要运行服务器端,服务器会监听 TCP 端口。然后运行客户端,根据事先设定好的 IP和端口,就可以进行连接传输数据了。
程序实现的关键步骤:
以TCP协议为例
服务器端:
1.创建套接字;2.绑定端口;3.进入无穷的循环;4.接收请求;5.处理请求;6.应答。
客户端:
1.找到服务器的IP地址和协议的端口号;2.创建套接字;3.确定连接需要任意的,没有使用的端口号允许TCP去选择一个;4.将套接字和服务器连接;5.使用应用层协议和服务器交互;6.关闭连接。
(Multi-protocol file transfer c/s network application design and implementation of programs simulate multi-protocol server with TCP/UDP both protocols. First socket server to create a good two protocols, TCP port and listens for connections. If necessary, use the function to handle multiple connections and non-blocking treatment. And the client can follow directly address and port number to communicate.
First run on the server side, the server listens on TCP port. Then run the client, according to pre-configured IP and port, you can connect the data transmission.
The key step program implementation:
In TCP protocol as an example
Service-Terminal:
1. Create a socket 2 bound port 3 enter an infinite loop 4. receiving a request 5. processing requests 6 response.
Clients:
1. Locate the server s IP address and protocol port number 2 creates a socket 3 connections need to determine arbitrary, unused port allows TCP to choose a 4 and the socket server connections 5 using appli)
- 2016-07-11 10:19:07下载
- 积分:1
-
49636978jxjh
处于不同目的的旅客对交通工具有不同的要求。编制一个全国城市间的交通咨询程序,为旅客提供两种或三种最优决策的交通咨询。(Different purposes in the mode of transport of passengers have different requirements. The preparation of a national inter-city traffic advisory procedures, provide passengers with two or three optimal decision of the Transport Advisory.)
- 2008-12-20 13:46:47下载
- 积分:1
-
ClientImformationSystem
MFC的增删查改基本功能的实现,对于初学者来说还算不错(MFC s basic CRUD functionality, pretty good for beginners)
- 2020-11-07 21:49:55下载
- 积分:1
-
HOUGH
HOUGH变换圆检测,可同时检测多个圆;对了解HOUGH变换很有帮助(HOUGH transform circle detection, can simultaneously detect multiple round)
- 2010-08-03 09:38:56下载
- 积分:1
-
company_network
搭建一个有4个部门的公司网络,包含研发部门、测试部门、管理部门和销售部门,利用局域网模型在一个对象中模拟一个服务器和多个客户端的行为(Set up a department of four corporate network, including R & D department, testing department, management department and sales department, the use of local area network model of an object in the simulation at a server and multiple clients of conduct)
- 2009-04-08 19:35:59下载
- 积分:1
-
asmmodel
易语言汇编模块源码 献给新手学习. 支持所有汇编代码(Easy assembly language source module dedicated to novice learning. Support for all assembly code)
- 2010-02-17 07:52:44下载
- 积分:1
-
Visual C++网络通信协议分析
Visual C++网络通信协议分析,使你对网络编程有一个全新的掌握(Analysis of network communication protocal in vc, you can gain a completely new understanding of network programming)
- 2005-06-24 07:26:00下载
- 积分:1
-
VB_BMP
用VB6编程,用来读取BMP图片的PIXEL资料,做为其他影像处理之用(Using VB6 programming, used to read BMP images, as other image processing purposes)
- 2013-11-20 16:14:55下载
- 积分:1
-
CuraEngine-master
3D打印源码,引擎源码,包括头文件和库文件(3D print source code)
- 2020-11-05 15:29:50下载
- 积分:1
-
3Dmesh
三维图形的切割就是要把三维网格模型进行切割然后以等值线显示切面上的数值。运用适当的三维图形显示技术和可视化C++编成技术来实现的。(Three-dimensional graphics of the cut is to take three-dimensional grid model and then cut the contour values on the display section. Use of appropriate three-dimensional graphics display technology and visualization techniques to compiled C++ implementation.)
- 2010-10-16 17:27:19下载
- 积分:1