-
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
-
blur
first blur program on VB6
- 2015-06-05 15:22:07下载
- 积分:1
-
一个基于vc.net dotNET特性演示软件
一个基于vc.net dotNET特性演示软件-vc.net dotNET based on a characteristic presentation software
- 2022-06-01 13:27:10下载
- 积分:1
-
FirstISAPI
这是一个实现ISAPI的程序
实现了用户输入,并回显的功能(ISAPI realize this is a procedure for the realization of the user input, and echo the function of)
- 2008-04-10 10:59:02下载
- 积分:1
-
HVPM_Sensored-28035
基于ti 最新piccolo系列28035的永磁同步电机矢量控制程序,本人在ti工装上调试通过,对不熟悉同步电机驱动开发流程的朋友很有帮助(Ti latest piccolo series 28035 permanent magnet synchronous motor vector control program, I ti tooling, debugging through, helpful friends are not familiar with synchronous motors drive the development process)
- 2012-09-11 11:01:48下载
- 积分:1
-
AYQQ管家2018 AYUI7版本
AYQQ管家2018 AYUI7版本,界面很炫酷,值得参考(AYQQ Butler 2018 AYUI7 Version)
- 2020-06-16 06:40:02下载
- 积分:1
-
oscilloscope_src
说明: Source code for Oscilloscope on Windows.
- 2020-06-24 10:40:02下载
- 积分:1
-
trmsim-wsn_0.1-exec
TRMSim ,无线传感器网络(信任和声誉模型模拟无线传感器网络)是一个基于Java的模拟器旨在测试信托和声誉模型WSNs 。它提供了一个信托基金和声誉模型称为BTRM (TRMSim-WSN [Trust and Reputation Models Simulator for Wireless Sensor Networks] is a Java-based simulator aimed to test Trust and Reputation models for WSNs. It provides one Trust and Reputation model called BTRM-WSN and new ones can be easily )
- 2009-02-19 15:26:19下载
- 积分:1
-
311617
文本高亮朗读源码,例程程序创建SAPI.SpVoice对象实现文本高亮朗读效果。(Highlight the text read aloud source , the routine creates SAPI.SpVoice object implementations highlighted text read aloud effects.)
- 2016-08-21 15:13:34下载
- 积分:1
-
13001-853271-site-web-dynamique-et-i-messenger
modele de site web juste pourvoi un peu
- 2020-06-24 12:00:02下载
- 积分:1