• 大小: 613KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-10
  • 语言: C/C++
  • 标签: P2P源码  

资源简介

什么是对等网络(P2P)技术?P2P技术属于覆盖层网络(Overlay Network)的范畴,是相对于客户机/服务器(C/S)模式来说的一种网络信息交换方式。在C/S模式中,数据的分发采用专门的服务器,多个客户端都从此服务器获取数据。这种模式的优点是:数据的一致性容易控制,系统也容易管理。但是此种模式的缺点是:因为服务器的个数只有一个(即便有多个也非常有限),系统容易出现单一失效点;单一服务器面对众多的客户端,由于CPU能力、内存大小、网络带宽的限制,可同时服务的客户端非常有限,可扩展性差。P2P技术正是为了解决这些问题而提出来的一种对等网络结构。在P2P网络中,每个节点既可以从其他节点得到服务,也可以向其他节点提供服务。这样,庞大的终端资源被利用起来,一举解决了C/S模式中的两个弊端。

资源截图

代码片段和文件信息


/*-------------------------------------------------------------*/
/*--- Block sorting machinery                               ---*/
/*---                                           blocksort.c ---*/
/*-------------------------------------------------------------*/

/*--
  This file is a part of bzip2 and/or libbzip2 a program and
  library for lossless block-sorting data compression.

  Copyright (C) 1996-2002 Julian R Seward.  All rights reserved.

  Redistribution and use in source and binary forms with or without
  modification are permitted provided that the following conditions
  are met:

  1. Redistributions of source code must retain the above copyright
     notice this list of conditions and the following disclaimer.

  2. The origin of this software must not be misrepresented; you must 
     not claim that you wrote the original software.  If you use this 
     software in a product an acknowledgment in the product 
     documentation would be appreciated but is not required.

  3. Altered source versions must be plainly marked as such and must
     not be misrepresented as being the original software.

  4. The name of the author may not be used to endorse or promote 
     products derived from this software without specific prior written 
     permission.

  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ‘‘AS IS‘‘ AND ANY EXPRESS
  OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED
  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL
  DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE
  GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS
  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY
  WHETHER IN CONTRACT STRICT LIABILITY OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

  Julian Seward Cambridge UK.
  jseward@acm.org
  bzip2/libbzip2 version 1.0 of 21 March 2000

  This program is based on (at least) the work of:
     Mike Burrows
     David Wheeler
     Peter Fenwick
     Alistair Moffat
     Radford Neal
     Ian H. Witten
     Robert Sedgewick
     Jon L. Bentley

  For more information on these sources see the manual.

  To get some idea how the block sorting algorithms in this file 
  work read my paper 
     On the Performance of BWT Sorting Algorithms
  in Proceedings of the IEEE Data Compression Conference 2000
  Snowbird Utah USA 27-30 March 2000.  The main sort in this
  file implements the algorithm called  cache  in the paper.
--*/


#include “bzlib_private.h“

/*---------------------------------------------*/
/*--- Fallback O(N log(N)^2) sorting        ---*/
/*--- algorithm for repetitive blocks      ---*/
/*---------------------------------------------*/

/*---------------------------------------------*/

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      32625  2002-07-24 15:56  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\blocksort.c

     文件      61577  2002-07-24 15:56  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\bzip2.c

     文件      46795  2002-07-24 15:56  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\bzlib.c

     文件       7894  2002-07-24 15:56  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\bzlib.h

     文件      14256  2002-07-24 15:56  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\bzlib_private.h

     文件      22019  2002-07-24 15:56  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\compress.c

     文件       6397  2002-07-24 15:56  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\crctable.c

     文件        483  2002-12-28 03:24  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\CVS\Entries

     文件         18  2002-07-24 15:56  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\CVS\Repository

     文件         48  2003-03-13 15:04  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\CVS\Root

     文件      21404  2002-07-24 15:56  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\decompress.c

     文件       1036  2008-04-01 13:38  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\downcode.com.txt

     文件       7600  2002-07-24 15:56  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\huffman.c

     文件       1740  2002-07-24 15:56  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\LICENSE

     文件       5439  2002-07-24 15:56  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2\randtable.c

     文件       3490  2003-01-23 17:30  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2.dsp

     文件       4105  2003-03-22 11:33  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\bzip2.vcproj

     文件      70802  2003-07-15 17:29  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\ChangeLog.txt

     文件       5187  2003-07-15 16:53  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\client\ADLSearch.cpp

     文件      11672  2003-07-15 16:53  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\client\ADLSearch.h

     文件       1815  2003-04-15 12:13  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\client\BitInputStream.h

     文件       1748  2003-04-15 12:13  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\client\BitOutputStream.h

     文件      11574  2003-07-15 16:53  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\client\BufferedSocket.cpp

     文件       6025  2003-07-15 16:53  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\client\BufferedSocket.h

     文件      17256  2003-07-15 16:53  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\client\Client.cpp

     文件       8918  2003-07-15 16:53  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\client\Client.h

     文件      10675  2003-07-15 17:09  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\client\ClientManager.cpp

     文件       4782  2003-04-15 12:13  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\client\ClientManager.h

     文件       1474  2003-04-15 12:13  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\client\ClientManagerListener.h

     文件       2693  2003-07-15 16:53  上传下载的p2p技术C语言源码\上传下载的p2p技术C语言源码\P2P\p2p_c\client\config.h

............此处省略233个文件信息

评论

共有 条评论

相关资源