FreenetWiki : FCP2p0TestDDARequest

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

TestDDARequest


This is a message of the Freenet Client Protocol 2.0 (FCP 2.0).
It is sent from a client program to the Freenet node.
This message must be sent before any operation involving DDA is requested. If you don't, the node will reply with a ProtocolError code 25.
The node will respond with a TestDDAReply message.

You can send more than one TestDDARequest message for different directories if necessary : the node handles them per socket, meaning that if you close/reopen the socket you have to re-do it.
Each TestDDARequest message will be obsoleted if a new one is received for the same directory.

Example

TestDDARequest
Directory=/tmp/
WantReadDirectory=true
WantWriteDirectory=true
EndMessage


Field Possible values Mandatory? Description
Directory Arbitrary string, on one line Yes The directory files you want to access reside in
WantReadDirectory boolean False Do you plan to do any PUT operation ? Be aware that the node won't allow you to do it unless it has **write** access to the given directory. See the note above
WantWriteDirectory boolean False Do you plan to do any GET operation ?


Use case
See http://archives.freenetproject.org/message/20070412.171626.07d3668d.en.html and http://archives.freenetproject.org/message/20070414.083225.647d5e15.en.html for implementation details.
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.0699 seconds