-
一个聊天程序,客户端跟服务器端都有
不错的网络编程
一个聊天程序,客户端跟服务器端都有
不错的网络编程-a chat program, the client with the server has a good network programming
- 2022-07-14 14:29:10下载
- 积分: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
-
simple client
简单的客户端服务器程序,java编写,功能十分简单-simple client-server process, the preparation of java, a very simple function
- 2022-05-16 17:53:12下载
- 积分:1
-
这是完整的一个C/S的客户服务端程序!但是我希望加点功能!请大家帮帮忙,“我要做的是客户端和服务器正常运行的情况下,如果网络断了,(比如说我把网络弄掉了,然后再...
这是完整的一个C/S的客户服务端程序!但是我希望加点功能!请大家帮帮忙,“我要做的是客户端和服务器正常运行的情况下,如果网络断了,(比如说我把网络弄掉了,然后再接好)过了一会网络恢复正常,客户端能自动连接到服务器端,不能人工干涉! 我查了一些资料,在VC里有一个函数OnTimer(nIDEvent)可以定时产生事件!可以实现这个功能,但是我用了,还是连不上,请大家帮帮忙吧!做好后给我发到我的邮箱里!谢谢!-This is a complete C/S programe,but I hope put more function into it.Please help me.Fllowing is I ll want to do.When client is communicating with server normally,the network link is down. After while the link recovery(ie,I take the cable out from the computer then plug it in.)The Client can reconnect the server automatically not redo by human.I study some reference information to do it.There is a function OnTimer(nIDEvent) in VC can send event message periodically.But I still can t reconnect.Please help me to do it and then mail to me. Thanks.
- 2022-03-31 05:36:33下载
- 积分:1
-
一个端口重定向工具的源代码,适用于将一个端口的数据转发到另一个端口。...
一个端口重定向工具的源代码,适用于将一个端口的数据转发到另一个端口。-A port redirection tool for source code, applies to a data port forwarding to another port.
- 2022-04-01 06:54:50下载
- 积分:1
-
网上书店(源码与文档)后台管理:/manage
后台管理用户名:admin 密码:admin...
网上书店(源码与文档)后台管理:/manage
后台管理用户名:admin 密码:admin-Online Bookstore (source code and documentation) Admin:/manage Admin Username: admin Password: admin
- 2022-01-20 22:44:53下载
- 积分:1
-
heritrix是一种开源的网络爬虫/网络蜘蛛,heritrix目的是能够跟踪页面的url进行扩展的抓取,最后为搜索引擎提供广泛的数据来源。...
heritrix是一种开源的网络爬虫/网络蜘蛛,heritrix目的是能够跟踪页面的url进行扩展的抓取,最后为搜索引擎提供广泛的数据来源。-heritrix is an open source network reptiles/Web Spiders, heritrix purpose is to track the page url to the expansion of the crawl, and finally for the search engine provides a wide range of data sources.
- 2022-01-24 12:54:38下载
- 积分:1
-
OMNET++学习书,包含每个实例的网络层…
Omnet++学习全书,内含网络每个层的仿真实例和源代码(已经测试)
-Omnet++ Learning book that contains the network layer of each simulation examples and source code (already tested)
- 2022-02-20 12:12:56下载
- 积分:1
-
一个控制台的select模型的聊天服务器
一个控制台的select模型的聊天服务器-console select a chat server model
- 2023-03-28 14:35:04下载
- 积分:1
-
聊天室程序,支持多线程,非常好的一个游戏可以开发你的智力,希望你会喜欢的,支持网络和单机的...
聊天室程序,支持多线程,非常好的一个游戏可以开发你的智力,希望你会喜欢的,支持网络和单机的-chat room procedures and support multithreading, a very good game can develop your intelligence, I hope you like it, support networks and stand-alone
- 2022-06-17 03:13:05下载
- 积分:1