Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: cjdns-0.2
Fetching contributors…

Cannot retrieve contributors at this time

file 19 lines (13 sloc) 0.723 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include "dht/CJDHTConstants.h"

// Signifying that this message is a query and defining the query type.
String* const CJDHTConstants_QUERY = &(String) { .len = 1, .bytes = "q" };

// Find nodes query. "fn"
String* const CJDHTConstants_QUERY_FN = &(String) { .len = 2, .bytes = "fn" };

// Ping query
String* const CJDHTConstants_QUERY_PING = &(String) { .len = 2, .bytes = "pn" };

// A search target (address)
String* const CJDHTConstants_TARGET = &(String) { .len = 3, .bytes = "tar" };

// Response with nodes. "n"
String* const CJDHTConstants_NODES = &(String) { .len = 1, .bytes = "n" };

// Transaction id
String* const CJDHTConstants_TXID = &(String) { .len = 4, .bytes = "txid" };
Something went wrong with that request. Please try again.