-
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
-
TestNetDetect(WIN32)
CPing依据ICMP协议实现, 可解析域名和IP, 可设置发包数量,统计丢包率(CPing based on ICMP protocol implementation can resolve domain names and IP, you can set the number of contracting, statistical packet loss rate)
- 2009-11-27 17:46:36下载
- 积分:1
-
TP5-Todo-list
Visual Studio2017制作,TO-DO-LIST程序,包含源代码,可以添加任务的标题、描述、分类以及Deadline,添加后可进行修改,完成后打勾可以删除。(done with visual studio 2017 and it can add some tasks you want to do and modify them if you want, and at the end you can delete the task that you have finished.)
- 2018-04-30 22:02:36下载
- 积分:1
-
nolinknet
无连接的VC++网络通信 源代码,输入本机端口号、目标端口号、目标机IP地址,可以发送消息,并不建立连接。(Connectionless network communications VC++ source code, enter the local port number, destination port number, destination IP address, you can send a message, does not establish a connection.)
- 2015-02-06 10:25:46下载
- 积分:1
-
TCPPORTSCAN
TCP端口扫描,可以获得指定IP段内的主机名,mac地址,存活端口,并将这些信息保存在SQLITE数据库,下次可以直接读取数据库信息,移值性好!(CP port scan, you can get within the segment specified IP host name, mac address, survival ports, and the information stored in the SQLITE database, the next can be read directly, transfer value is good!)
- 2013-09-03 19:37:00下载
- 积分:1
-
VC++ 五子棋包括网络版与单机版
利用C++语言编写的五子棋单机版和网络版的结合,需要的朋友可以下载,里面附有源码,没有夹杂其他平台的纯VC++(The combination of gobang single edition and network version written in C++ language needs friends to download, which contains source code, no pure VC++ mixed with other platforms.)
- 2017-12-13 22:19:10下载
- 积分:1
-
winsocket-transpot
MFC类下的winsock多线程实现文件传输,在vc++6.0下通过调试。(MFC category under the winsock multithreading document transmission, the 6.0 vc through debugging.)
- 2007-03-21 16:45:22下载
- 积分:1
-
VB-asm-Packge
VB纯代码,内嵌汇编,对指定进程发送网络数据包。(VB pure code inline assembler, network packet sent to the specified process.)
- 2013-03-31 13:57:41下载
- 积分:1
-
DMMidddleWare
部署在服务器公网上 实现内外网通讯的源码,外部程序连接到这个程序,这个程序再连接内部服务器(Deployed on the server the public Internet to achieve internal and external network communication)
- 2012-02-10 15:46:10下载
- 积分:1
-
netfileexedemo
说明: 网络文件系统,十分好的文件传输代码,非常适合初学者(Network file system, file transfer is very good code, very suitable for beginners)
- 2011-03-25 00:47:09下载
- 积分:1