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
Page was generated in 0.0699 seconds