-
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
-
VB-asm-Packge
VB纯代码,内嵌汇编,对指定进程发送网络数据包。(VB pure code inline assembler, network packet sent to the specified process.)
- 2013-03-31 13:57:41下载
- 积分:1
-
juyuwangliaotian
局域网聊天软件,主要功能是发送文字消息,语音消息,图片,功能强大,界面简单(LAN chat software, the main function is to send text messages, voice messages, pictures, powerful, simple interface)
- 2012-07-13 09:25:37下载
- 积分:1
-
HLA
HLA仿真程序设计 学RTI的必备书,此书包含HLA的文件结构说明以及联机实例。望对大家有用(HLA RTI Design simulation program essential book, this book contains the file structure of HLA-line instructions and examples. Hope useful for all)
- 2020-10-29 11:19:57下载
- 积分:1
-
Net
黑客攻击与防范技术,我所保存的最全的网络安全资料。(Hacker attacks and prevention techniques, I have saved the most complete network security information.)
- 2010-03-10 13:20:04下载
- 积分:1
-
Space_Environment
倾情奉献,这是我编的一个电离层的解算程序,里面有各参数的详细说明,希望对大家有所帮助(Portrait of dedication, which I made a solution of the ionosphere counting procedures, which have a detailed description of each parameter, and they hope to help everyone)
- 2008-04-19 13:35:16下载
- 积分:1
-
myFrame
封装帧和解析帧,并有CRC校验,完全是自己手写(Feng binding and parsing frame, and a CRC checksum)
- 2009-10-11 16:57:57下载
- 积分:1
-
SystemGraph
关于网络流量监控的曲线设计,软件小巧,占用资源少,且适用,适合课程设计,毕业设计。(About network flow monitoring the curve of the design, software compact, take up less resources, and applicable, suitable for course design, graduation design.
)
- 2012-03-20 11:25:44下载
- 积分:1
-
17501500
用VC写的界面编程,可实现用图形纹理的设计,()
- 2018-02-24 23:36:04下载
- 积分:1
-
IP-phone-source
VC++实现的IP网络电话方案,借鉴一下吧(VC IP telephone network, learn from my views)
- 2007-06-20 11:40:04下载
- 积分:1