-
C#实现分段重组(segment/reassembly)协议
发送端:发送端每收到一个上层报文都会为其设一个唯一的序列号。收到的大报文进行分段,构造S/R报头,如 REF _Ref371456073 h 图表1所示。构造报头和数据部分连接后,按序从片段号=1的报文开始发送,并设置重传定时器,直到发送完毕。重传定时器截止之前,如果收到了接收端发送的完全确认,即数据分段全部被接收,则清除该该序列号报文的缓存和定时器;如果收到了部分确认则根据部分确认的指示重传丢失的分段;如果定时器截止时还没有收到任何接收端的回
- 2023-04-22 01:25:04下载
- 积分:1
-
vnc桌面共享,开发环境vc++,希望大家多多研究。
vnc桌面共享,开发环境vc++,希望大家多多研究。-for desk share,devolepment enviroment is vc++.
- 2022-04-15 22:43:14下载
- 积分:1
-
使用Windows Socket API编写的通用函数,包含异步socket的使用
使用Windows Socket API编写的通用函数,包含异步socket的使用-General function writed by Windows Socket API, containing the use of non-synchronized socket
- 2022-08-21 08:54:25下载
- 积分:1
-
各个线程任务分配是这样实现的。在开始下载时,文件平均分成若干块进行下载。如第一个线程一开始的任务是从文件的0位置开始下载一直到72908位置处。线程1每次下载...
各个线程任务分配是这样实现的。在开始下载时,文件平均分成若干块进行下载。如第一个线程一开始的任务是从文件的0位置开始下载一直到72908位置处。线程1每次下载一块数据后就要调整任务,如第一次下载了20800字节的数据,那么线程1的任务将改为:20800-72908。如此下去,直到任务为72908-72908时表示线程1完成了当前的下载任务。此时,线程1就分析各个线程的任务,找出任务最为繁忙的一个线程:如线程3:14816-218724。那么线程1就自动去调整任务,拿50%的任务来再次下载。周而复始直到各个线程都完成任务。不过这里有一点需要注意:为了避免重复下载部分数据,在调整任务的时候,起始的文件便移量必须加上接受缓冲器的字节数,因为如前面所举的列子来看。线程1和线程3在平衡负载的时候,线程正在下载数据,如果所剩的数据比接受缓冲器的大小还小,线程1和线程3的部分下载数据将会重复。
在调整任务和分析任务的时候,会发现一个问题。就是读取文件数据太过频繁。于是我用了一个数据结构。在下载文件的过程中始终打开配置文件,这样速度提高了很多。在文件下载完毕后关闭文件。-various threads assignment is achieved. At the beginning of the download, the paper divided into a number of pieces of the download. As a thread of a task is to start from the position paper of 0 to start the download has 72,908 locations Department. Thread a download each one will have to adjust the data tasks, such as the first downloaded 20,800 gigabytes of data, then threaded a task will be re :20800- 72908. This situation continues until the mandate of 72908-72908 said threaded a completion of the cu
- 2022-03-20 03:50:55下载
- 积分:1
-
LDAP目录访问协议窗口光型和样品!
Windows LDAP轻目录访问协议类及其示例!-Windows LDAP Directory Access Protocol light type and sample!
- 2022-04-15 11:04:15下载
- 积分:1
-
求解精度的惯性导航的C程序开发环境cdevel…
惯性导航精解算程序 C开发环境 Cdevelopment environment -Solver precision inertial navigation procedures C development environment Cdevelopment environment
- 2022-07-15 12:59:53下载
- 积分:1
-
Windows Sockets规范及应用Windows网络编程接口
Windows Sockets规范及应用Windows网络编程接口-Windows Sockets specifications and the Windows Application Programming Interface Network
- 2022-04-10 09:27:52下载
- 积分:1
-
a network communications, network clients receive data and send data source.
一个网络通讯中,网络客户端的接受数据和发送数据的源代码。-a network communications, network clients receive data and send data source.
- 2022-04-26 22:43:43下载
- 积分:1
-
TCP文件传输协议的服务器端的实现(JAVA编写)
TCP文件传输协议的服务器端的实现(JAVA编写)-TCP File Transfer Protocol server-side to achieve the (JAVA prepared)
- 2022-05-13 16:29:49下载
- 积分:1
-
The program design is divided into a server application and the client part of t...
本程序设计分为服务器应用程序及客户机应用程序部分,采用Socket套接字库网络编程。(UDP)和(TCP/IP)相结合的连接方式,及解决了数据传输的时效性又能保证数据在传输的过程中不会丢失。另外程序采用多个线程来避免程序阻塞-The program design is divided into a server application and the client part of the application, using Socket socket network programming library. (UDP) and the (TCP/IP) combination of connections, and solve the timeliness of data transmission but also ensures that the data will not be lost during transmission. Another program uses multiple threads to avoid blocking procedure
- 2022-03-06 09:35:13下载
- 积分:1