-
Ping
用C语言实现的ping 功能,经典实现,在VC下调试通过(Ping using C language functions implemented)
- 2010-05-10 11:22:03下载
- 积分:1
-
ClientSocketList
这份源码可以让大家更清晰的知道编写网络通讯的技巧(This code can let everyone know more clearly written communication network techniques)
- 2010-05-25 09:34:52下载
- 积分:1
-
UDP-based_Sliding_Window_Protocol
基于UDP的滑动窗口协议的设计与实现
UDP-based Sliding Window Protocol (UDP-based Sliding Window Protocol Design and Implementation of)
- 2009-11-25 11:08:41下载
- 积分:1
-
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
-
UDP
仿照TCP协议的UDP封装,用ACK,和滑动窗口(Modeled on the TCP protocol UDP encapsulation, with ACK, and sliding window)
- 2016-09-19 11:03:41下载
- 积分:1
-
sssssss
程序记录并显示了数据报从源端机器传送到目标机器的过程中所经过的路由器的IP地址,并且记录了数据报到达每个路由器所需要的时间。认真观察到达每个路由器的时间有什么区别,从而熟练掌握traceroute的工作原理和ICMP报文协议。 (The program records and displays the IP addresses of routers through which the datagram sent from the source client machine to the target machine , and the recording of the data packets arrive at the time required by each router . )
- 2013-05-21 10:00:17下载
- 积分:1
-
TCP
一个简单的TCP聊天程序,使用winsock api实现。(A simple TCP chat program)
- 2010-03-14 14:26:44下载
- 积分:1
-
NetTraffic_MFC
利用CButton模拟的网络流量统计控件,可作为学习(The use of simulation CButton controls the network traffic statistics can be used as learning)
- 2009-05-01 15:29:08下载
- 积分:1
-
router1
模拟路由器功能,简单的c++程序代码,可以实现。(Simulation router function a simple c++ code, can be achieved.)
- 2021-03-27 22:29:12下载
- 积分:1
-
socket
基于socket与数据库的自动贩货机服务器端和客户端的编程(Socket and the database automatically based on trafficking in goods and client-server programming)
- 2011-05-16 15:45:31下载
- 积分:1