Skip to content
David Roden edited this page Jan 6, 2025 · 1 revision

SendURI sends a Hyphanet URI to a darknet peer node. While the URI is set as field on this message, an optional description can be set as payload.

Once the message has been sent to the peer, the node will reply with a SentPeer message.

If the peer node cannot be found, an UnknownNodeIdentifier message is sent. If the peer is not a darknet peer, a ProtocolError with error code DARKNET_ONLY is sent.

Example

SendURI
Identifier=send-uri-0001
NodeIdentifier=other.node:1234
URI=KSK@gpl.txt
DataLength=3
Data
GPL

Details

Field Possible values Mandatory Default Description
Identifier any string No The identifier of the request.
NodeIdentifer <name>/<identity>/<ip>:<port> Yes n/a The identifier of the peer node to send the message to.
URI a Hyphanet URI Yes n/a The URI to send to the peer.
DataLength integer > 0 only iff payload is used  none The length of the message payload.
<payload> any UTF-8-encoded string only iff DataLength is set The description of the URI.

Clone this wiki locally