KadC-02Aug06
所属分类:网络
开发工具:Unix_Linux
文件大小:513KB
下载次数:23
上传日期:2008-12-09 00:49:30
上 传 者:
no name
说明: p2p类源代码 kadc协议官方源代码,可复用性很强,linux下用C语言实现
(p2p category agreement kadc source code official source code reusability strong, linux using C language)
文件列表:
KadC-02Aug06 (0, 2008-12-09)
KadC-02Aug06\KadC (0, 2008-12-09)
KadC-02Aug06\KadC\bufio.c (3547, 2006-07-25)
KadC-02Aug06\KadC\bufio.h (2631, 2006-07-25)
KadC-02Aug06\KadC\Debug_pthreads.c (1057, 2006-07-25)
KadC-02Aug06\KadC\Debug_pthreads.h (503, 2006-07-25)
KadC-02Aug06\KadC\dns.c (12766, 2006-07-25)
KadC-02Aug06\KadC\dns.h (3306, 2006-07-25)
KadC-02Aug06\KadC\doc (0, 2008-12-09)
KadC-02Aug06\KadC\doc\broken_clients.txt (605, 2006-07-25)
KadC-02Aug06\KadC\doc\CHANGES.txt (1039, 2006-08-02)
KadC-02Aug06\KadC\doc\KadC.txt (35538, 2006-07-25)
KadC-02Aug06\KadC\doc\namecache.txt (8775, 2006-07-25)
KadC-02Aug06\KadC\doc\Quickstart.txt (9782, 2006-07-25)
KadC-02Aug06\KadC\doc\tinyconfig.txt (1398, 2006-07-25)
KadC-02Aug06\KadC\doc\TODO.txt (117, 2006-07-25)
KadC-02Aug06\KadC\droppriv.c (3196, 2006-07-25)
KadC-02Aug06\KadC\droppriv.h (146, 2006-07-25)
KadC-02Aug06\KadC\eMuleKAD.c (18601, 2006-07-25)
KadC-02Aug06\KadC\eMuleKAD.h (1748, 2006-07-25)
KadC-02Aug06\KadC\external_libs (0, 2008-12-09)
KadC-02Aug06\KadC\external_libs\win32 (0, 2008-12-09)
KadC-02Aug06\KadC\external_libs\win32\libpthreadGC.a (89374, 2006-07-25)
KadC-02Aug06\KadC\external_libs\win32\mgwz.dll (61440, 2005-07-09)
KadC-02Aug06\KadC\external_libs\win32\pthread.h (42900, 2006-07-25)
KadC-02Aug06\KadC\external_libs\win32\pthreadGC.dll (54694, 2006-07-25)
KadC-02Aug06\KadC\external_libs\win32\sched.h (4737, 2006-07-25)
KadC-02Aug06\KadC\gmon.out (52808, 2006-07-25)
KadC-02Aug06\KadC\gprof.txt (114860, 2006-07-25)
KadC-02Aug06\KadC\headers (41, 2006-07-25)
KadC-02Aug06\KadC\inifiles.c (3524, 2006-07-25)
KadC-02Aug06\KadC\inifiles.h (1480, 2006-07-25)
KadC-02Aug06\KadC\int128.c (5180, 2006-07-25)
KadC-02Aug06\KadC\int128.h (2992, 2006-07-25)
KadC-02Aug06\KadC\kadc.ini (110576, 2006-07-25)
KadC-02Aug06\KadC\KadCalloc.c (6358, 2006-07-25)
KadC-02Aug06\KadC\KadCalloc.h (1901, 2006-07-25)
KadC-02Aug06\KadC\KadCapi.c (27684, 2006-07-25)
... ...
Welcome to KadC, a C library for publishing and retrieving records
in Kademlia-based Distributed Hash Tables. Possible uses include
publishing a client's IP address for other peers to connect to (e.g.,
Internet phones, serverless IM programs); replacements for DNS; search
engine for BitTorrent clients; replacements for LDAP directories; etc.
For other ideas, see my postings at
http://zgp.org/pipermail/p2p-hackers/2004-March/001780.html
http://lists.virus.org/cryptography-0405/msg00039.html
A test main is provided to exercise the main functions through console I/O.
To start playing as soon as possible, please read Quickstart.txt, which also
gives an idea of the structure of the (meta)data that may be published and
retrieved.
PLATFORMS
KadC requires zlib (www.zlib.org) and a POSIX threads package. This may
be replaced by the GNU Pth package (http://www.ossp.org/pkg/lib/pth/ )
built with --enable-pthread passed to ./configure. The option
--enable-syscall-hard is NOT required by the library, but it may be
by the end user's calling program if the latter contains blocking
I/O calls (see Pth's docs for the details). Also, the Makefile
may need minor changes to add to a -I option for the directory
containing Pth's pthread.h, a -L option for the directory containing
Pth's libpthread.a, and reference the directory containing
libpthread.so so that the loader knows where to find it at
runtime (a simple way is to listing it in /etc/ld.so.conf and
run ldconfig).
KadC has been successfully built and run on the following platforms:
- Windows:
Cygwin tools, either in POSIX or WIN32 (MinGW) mode. In the second case,
the Pthreads package from http://sources.redhat.com/pthreads-win32/
needs to be installed (see the Makefile for the details). The commands
to build library (KadC.a) and test executable are:
POSIX mode: make MAIN=KadC
WIN32 mode: make MAIN=KadC WIN32=1
- Linux RedHat 7.0, either with Native pthreads or GNU Pth 2.0.1, with
make MAIN=KadC
- NetBSD with GNU Pth
make MAIN=KadC
- MacOS X
make MAIN=KadC
If you succeed on other platforms, or do not, please let me know. My
e-mail addresses are in the header of all the source files.
近期下载者:
相关文件:
收藏者: