I've been working on CFCP, a C++ class library for FCP communication. I've
released version 0.1 which, though unpolished, works.
Structure is as follows:
CFCP - engine object that keeps tabs on sockets, threads, and other
housekeeping information
::Hello - sends a Hello message and interprets the repsonse
::GenerateSVK - sends a GenerateSVKPair message and interprets the
response
::ClientGet - ...
[other message classes]
::Request - handles metadata, follows redirects, etc.
::Insert - does a "smart insert" (picks proper key type) and handles
metadata generation
::Socket - handles sockets; platform-specific
::Thread - handles threading; platform-specific
There's also a couple other utility classes, but that's about it.
Sample code:
CFCP engine;
CFCP::Request obj(&engine);
obj.SetKey("SSK at gpOQ5OUAgJiCferl1DD2n5kMzw4PAgM/delta407//");
obj.SetFilename("c:\index.html");
if (obj.DoExchange() == 0)
{
// success
}
else
{
// failure
}
http://sourceforge.net/projects/cfcp
--Will
_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl