KadC - P2P library

CONTENTS

intro
license
platforms
docs
lists
apps
download
links
credits

[SourceForge]

ama-gi

Applications

The KadC library comes with a small number of  "main" files in the main/ subdirectory. They  may be compiled and linked to the library by passing to the "make" command the initial part of their name: for example, to compile main/KadCmain.c, build the KadC library, and link them together in the executable main/KadC (or, under Windows, KadC.exe), one has to issue the command:

make MAIN=KadC

Most of them only exist in order to test particular components and are of no interest to the general user. Two, however, are important and may be used as examples of use:

KadC

KadC is the demo exerciser of the most important API calls. Here you may find a quick start guide. See also KadCcb for an example of the same application using the callback syntax for finding.

namecache

namecache is a caching DNS proxy that, besides handling normal DNS requests by forwarding them to a number of upstream servers, can also intercept queries for A records relative to specific "top level pseudo-domains" and convert them into P2P searches on the Distributed Hash Tables accessed by KadC; conversely, it may publish on the same DHT's the "external" IP address of a machine or its NATting router (if any) under a specified pseudo-domain name, so that other users of namecache may retrieve them. The resolution of those pseudo-domain names take a few seconds (on my system, usually about 7.5s) but of course the records are cached, so that successive references are handled instantly. For more details, see here.

© 2004 by Enzo Michelangeli