From 5a142bb697651693e4ce7654d2f74e688aab8894 Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Sat, 22 Feb 2014 17:06:07 -0500 Subject: Renamed dht server to dht node --- other/DHT_bootstrap.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'other/DHT_bootstrap.c') diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c index 307f80f6..291d6589 100644 --- a/other/DHT_bootstrap.c +++ b/other/DHT_bootstrap.c @@ -1,7 +1,7 @@ /* DHT boostrap * - * A simple DHT boostrap server for tox. + * A simple DHT boostrap node for tox. * * Copyright (C) 2013 Tox project All Rights Reserved. * @@ -33,8 +33,8 @@ #include "../testing/misc_tools.c" -#ifdef DHT_SERVER_EXTRA_PACKETS -#include "./bootstrap_server_packets.c" +#ifdef DHT_NODE_EXTRA_PACKETS +#include "./bootstrap_node_packets.c" #define DHT_VERSION_NUMBER 1 #define DHT_MOTD "This is a test motd" @@ -111,7 +111,7 @@ int main(int argc, char *argv[]) Onion *onion = new_onion(dht); Onion_Announce *onion_a = new_onion_announce(dht); -#ifdef DHT_SERVER_EXTRA_PACKETS +#ifdef DHT_NODE_EXTRA_PACKETS bootstrap_set_callbacks(dht->net, DHT_VERSION_NUMBER, DHT_MOTD, sizeof(DHT_MOTD)); #endif @@ -123,7 +123,7 @@ int main(int argc, char *argv[]) perror("Initialization"); manage_keys(dht); - /* We want our DHT public key to be the same as our internal one since this is a bootstrap server */ + /* We want our DHT public key to be the same as our internal one since this is a bootstrap node */ memcpy(dht->self_public_key, dht->c->self_public_key, crypto_box_PUBLICKEYBYTES); memcpy(dht->self_secret_key, dht->c->self_secret_key, crypto_box_SECRETKEYBYTES); printf("Public key: "); @@ -166,7 +166,7 @@ int main(int argc, char *argv[]) while (1) { if (is_waiting_for_dht_connection && DHT_isconnected(dht)) { - printf("Connected to other bootstrap server successfully.\n"); + printf("Connected to other bootstrap node successfully.\n"); is_waiting_for_dht_connection = 0; } -- cgit v1.2.3