Represents an interface to a freenet node via its FCP port, and
exposes primitives for the basic genkey, get, put and putdir operations
as well as peer management primitives.
Only one instance of FCPNode is needed across an entire running client
application, because its methods are quite thread-safe. Creating 2 or
more instances is a waste of resources.
Clients, when invoking methods, have several options regarding flow
control and event notification:
|
|
|
__del__(self)
object is getting cleaned up, so disconnect |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
invertprivate(self,
privatekey)
Converts an SSK or USK private key to a public equivalent |
source code
|
|
|
redirect(self,
srcKey,
destKey,
**kw)
Inserts key srcKey, as a redirect to destKey. |
source code
|
|
|
genchk(self,
**kw)
Returns the CHK URI under which a data item would be inserted. |
source code
|
|
|
|
|
|
|
|
|
testDDA(self,
**kw)
Test for Direct Disk Access capability on a directory (can the node
and the FCP client both access the same directory?) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
namesiteInit(self,
path)
Initialise the namesites layer and load our namesites list |
source code
|
|
|
|
|
|
|
namesiteAddLocal(self,
name,
privuri=None)
Create a new nameservice that we own |
source code
|
|
|
namesiteDelLocal(self,
name)
Delete a local nameservice |
source code
|
|
|
namesiteAddRecord(self,
localname,
domain,
uri)
Adds a (domainname -> uri) record to one of our local services |
source code
|
|
|
namesiteDelRecord(self,
localname,
domain)
Removes a domainname record from one of our local services |
source code
|
|
|
namesiteAddPeer(self,
name,
uri)
Adds a namesite to our list |
source code
|
|
|
namesiteHasPeer(self,
name)
returns True if we have a peer namesite of given name |
source code
|
|
|
namesiteGetPeer(self,
name)
returns record for given peer |
source code
|
|
|
namesiteRemovePeer(self,
name)
Removes a namesite from our list |
source code
|
|
|
|
|
namesiteProcessUri(self,
uri)
Reduces a URI |
source code
|
|
|
listenGlobal(self,
**kw)
Enable listening on global queue |
source code
|
|
|
ignoreGlobal(self,
**kw)
Stop listening on global queue |
source code
|
|
|
purgePersistentJobs(self)
Cancels all persistent jobs in one go |
source code
|
|
|
getAllJobs(self)
Returns a list of persistent jobs, excluding global jobs |
source code
|
|
|
getPersistentJobs(self)
Returns a list of persistent jobs, excluding global jobs |
source code
|
|
|
getGlobalJobs(self)
Returns a list of global jobs |
source code
|
|
|
getTransientJobs(self)
Returns a list of non-persistent, non-global jobs |
source code
|
|
|
|
|
clearGlobalJob(self,
id)
Removes a job from the jobs queue |
source code
|
|
|
getSocketTimeout(self)
Gets the socketTimeout for future socket calls; returns None if not
supported by Python version |
source code
|
|
|
|
|
|
|
setVerbosity(self,
verbosity)
Sets the verbosity for future logging calls |
source code
|
|
|
|
|
_mgrThread(self)
This thread is the nucleus of pyFreenet, and coordinates incoming
client commands and incoming node responses |
source code
|
|
|
_msgIncoming(self)
Returns True if a message is coming in from the node |
source code
|
|
|
|
|
_on_clientReq(self,
job)
takes an incoming request job from client and transmits it to the fcp
port, and also registers it so the manager thread can action
responses from the fcp port. |
source code
|
|
|
|
|
_hello(self)
perform the initial FCP protocol handshake |
source code
|
|
|
|
|
|
|
_getUniqueId(self)
Allocate a unique ID for a request |
source code
|
|
|
|
|
|
|
|