FreenetWiki : FCP2p0ClientPutComplexDir

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

ClientPutComplexDir


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.

Inserts one or more items under one single key.

ClientPutComplexDir works like an item container, in wich you can place any number of items that can be retrieved under the same Uri. On insert items are added to the container as "Files.0.*" up to "Files.N.*", on retrieval items can be retrieved as "Uri/MyItemName1", "Uri/Subfolder/MyItemName2".


ClientPutComplexDir
  Identifier=any
  URI=any
  Files.0.Name=any
  Files.1.Name=any
EndMessage
[Data]


Notes:


The message accepts the following fields:

Field Possible values Mandatory? Default Description
URI CHK@
KSK@name
SSK@privateKey/docname-1
USK@privateKey/docname/0/
Yes The type of key to insert. When inserting an SSK key, you explicitly specifiy the version number. For a USK key, use a zero and it should automatically use the correct version number.
Identifier Arbitrary text string Yes This is just for client to be able to identify files that have been inserted.
Verbosity Bitmask. At present only bits 1 and 512 are supported. No 0 0: report when complete, 1: SimpleProgress messages, 512: send StartedCompression and FinishedCompression messages
MaxRetries Integer -1 to 999999+? No ? Number of times to retry if the first time doesn't work. -1 means retry forever.
PriorityClass Number 0 (maximum priority) to 6 (minimum priority) No 2 (Semi-interactive priority class) How to prioritise the insert.
GetCHKOnly false, true No false If set to true, it won't actually insert the data, just return the key it would generate.
If the key is USK, you may want to transform it into a SSK, to prevent the node spending time searching for an unused index.
Global true, false No false Whether the insert is visible on the global queue or not.
DontCompress true, false No Hint to node: don't try to compress the data, it's already compressed
ClientToken Arbitrary string No Sent back to client on the PersistentPut if this is a persistent request
Persistence connection, reboot, forever No connection Whether the insert stays on the queue across new client connections, freenet restarts, or forever
TargetFilename A filename (no slashes) No Extracted from URI or Filename Filename to be appended to a CHK insert. Technically it creates a one-file manifest with this filename pointing to the file being uploaded. Ignored for all types other than CHK, since other types have human-readable filenames anyway. Empty means no filename.
EarlyEncode false, true No False See EarlyEncode
DefaultName string No False The item to display when someone requests the Uri only (without the item name part)


Followed by one or more of the following items:

Data item
Field Possible values Mandatory? Description
Files.N.Name Yes Name under which the item can be retrieved under the key. May contain slashes to indicate subfolders
Files.N.UploadFrom direct Yes
Files.N.DataLength integer Yes Number of bytes of data associated to the item
Files.N.Metadata.ContentType Any MIME type No The MIME type of the data being inserted. For text, if charset is not specified, node should auto-detect it and force the auto-detected version


File item
Field Possible values Mandatory? Description
Files.N.Name Yes Name under which the item can be retrieved under the key. May contain slashes to indicate subfolders
Files.N.UploadFrom disk Yes
Files.N.Filename Yes The name of the file on disk
Files.N.DataSize integer No Size of the file to upload in bytes
Files.N.Metadata.ContentType Any MIME type No The MIME type of the data being inserted. For text, if charset is not specified, node should auto-detect it and force the auto-detected version


Redirect item
Field Possible values Mandatory? Description
Files.N.Name Yes Name under which the item can be retrieved under the key. May contain slashes to indicate subfolders
Files.N.UploadFrom redirect Yes
Files.N.TargetURI Yes Freenet Uri to redirect to


Details

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.0675 seconds