aboutsummaryrefslogtreecommitdiff
path: root/src/dht
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-07-21 12:49:28 +0000
committerNathan S. Evans <evans@in.tum.de>2010-07-21 12:49:28 +0000
commit374dec07fb7a62f2413f793f4a16c84bb1b2e8fd (patch)
tree5c6e0d000b3635b64d1cb907b3de98ccf35eabca /src/dht
parent2c8cfaf46539ccdac9d8f95323fdb9ab87bd31f4 (diff)
downloadgnunet-374dec07fb7a62f2413f793f4a16c84bb1b2e8fd.tar.gz
gnunet-374dec07fb7a62f2413f793f4a16c84bb1b2e8fd.zip
minor blurb change
Diffstat (limited to 'src/dht')
-rw-r--r--src/dht/plugin_dhtlog_dummy.c2
-rw-r--r--src/dht/plugin_dhtlog_mysql.c68
2 files changed, 66 insertions, 4 deletions
diff --git a/src/dht/plugin_dhtlog_dummy.c b/src/dht/plugin_dhtlog_dummy.c
index 6386a6c83..55939ea9c 100644
--- a/src/dht/plugin_dhtlog_dummy.c
+++ b/src/dht/plugin_dhtlog_dummy.c
@@ -210,7 +210,7 @@ libgnunet_plugin_dhtlog_dummy_init (void * cls)
210} 210}
211 211
212/** 212/**
213 * Shutdown the module. 213 * Shutdown the plugin.
214 */ 214 */
215void * 215void *
216libgnunet_plugin_dhtlog_dummy_done (void * cls) 216libgnunet_plugin_dhtlog_dummy_done (void * cls)
diff --git a/src/dht/plugin_dhtlog_mysql.c b/src/dht/plugin_dhtlog_mysql.c
index a67301f83..f93935717 100644
--- a/src/dht/plugin_dhtlog_mysql.c
+++ b/src/dht/plugin_dhtlog_mysql.c
@@ -606,8 +606,26 @@ prepared_statement_run (struct StatementHandle *s,
606/* 606/*
607 * Inserts the specified trial into the dhttests.trials table 607 * Inserts the specified trial into the dhttests.trials table
608 * 608 *
609 * FIXME: Update sql tables, then this functions 609 * @param trialuid return the trialuid of the newly inserted trial
610 * parameters accordingly. 610 * @param num_nodes how many nodes are in the trial
611 * @param topology integer representing topology for this trial
612 * @param blacklist_topology integer representing blacklist topology for this trial
613 * @param connect_topology integer representing connect topology for this trial
614 * @param connect_topology_option integer representing connect topology option
615 * @param connect_topology_option_modifier float to modify connect option
616 * @param topology_percentage percentage modifier for certain topologies
617 * @param topology_probability probability modifier for certain topologies
618 * @param puts number of puts to perform
619 * @param gets number of gets to perform
620 * @param concurrent number of concurrent requests
621 * @param settle_time time to wait between creating topology and starting testing
622 * @param num_rounds number of times to repeat the trial
623 * @param malicious_getters number of malicious GET peers in the trial
624 * @param malicious_putters number of malicious PUT peers in the trial
625 * @param malicious_droppers number of malicious DROP peers in the trial
626 * @param message string to put into DB for this trial
627 *
628 * @return GNUNET_OK on success, GNUNET_SYSERR on failure
611 */ 629 */
612int 630int
613add_trial (unsigned long long *trialuid, int num_nodes, int topology, 631add_trial (unsigned long long *trialuid, int num_nodes, int topology,
@@ -728,6 +746,11 @@ get_dhtkey_uid (unsigned long long *dhtkeyuid, const GNUNET_HashCode * key)
728/* 746/*
729 * Inserts the specified dhtkey into the dhttests.dhtkeys table, 747 * Inserts the specified dhtkey into the dhttests.dhtkeys table,
730 * stores return value of dhttests.dhtkeys.dhtkeyuid into dhtkeyuid 748 * stores return value of dhttests.dhtkeys.dhtkeyuid into dhtkeyuid
749 *
750 * @param dhtkeyuid return value
751 * @param dhtkey hashcode of key to insert
752 *
753 * @return GNUNET_OK on success, GNUNET_SYSERR on failure
731 */ 754 */
732int 755int
733add_dhtkey (unsigned long long *dhtkeyuid, const GNUNET_HashCode * dhtkey) 756add_dhtkey (unsigned long long *dhtkeyuid, const GNUNET_HashCode * dhtkey)
@@ -815,6 +838,11 @@ get_node_uid (unsigned long long *nodeuid, const GNUNET_HashCode * peerHash)
815 838
816/* 839/*
817 * Inserts the specified node into the dhttests.nodes table 840 * Inserts the specified node into the dhttests.nodes table
841 *
842 * @param nodeuid the inserted node uid
843 * @param node the node to insert
844 *
845 * @return GNUNET_OK on success, GNUNET_SYSERR on failure
818 */ 846 */
819int 847int
820add_node (unsigned long long *nodeuid, struct GNUNET_PeerIdentity * node) 848add_node (unsigned long long *nodeuid, struct GNUNET_PeerIdentity * node)
@@ -855,6 +883,13 @@ add_node (unsigned long long *nodeuid, struct GNUNET_PeerIdentity * node)
855 883
856/* 884/*
857 * Update dhttests.trials table with current server time as end time 885 * Update dhttests.trials table with current server time as end time
886 *
887 * @param trialuid trial to update
888 * @param totalMessagesDropped stats value for messages dropped
889 * @param totalBytesDropped stats value for total bytes dropped
890 * @param unknownPeers stats value for unknown peers
891 *
892 * @return GNUNET_OK on success, GNUNET_SYSERR on failure.
858 */ 893 */
859int 894int
860update_trials (unsigned long long trialuid, 895update_trials (unsigned long long trialuid,
@@ -899,6 +934,11 @@ update_trials (unsigned long long trialuid,
899 934
900/* 935/*
901 * Update dhttests.trials table with total connections information 936 * Update dhttests.trials table with total connections information
937 *
938 * @param trialuid the trialuid to update
939 * @param totalConnections the number of connections
940 *
941 * @return GNUNET_OK on success, GNUNET_SYSERR on failure.
902 */ 942 */
903int 943int
904add_connections (unsigned long long trialuid, unsigned int totalConnections) 944add_connections (unsigned long long trialuid, unsigned int totalConnections)
@@ -933,6 +973,16 @@ add_connections (unsigned long long trialuid, unsigned int totalConnections)
933 973
934/* 974/*
935 * Inserts the specified query into the dhttests.queries table 975 * Inserts the specified query into the dhttests.queries table
976 *
977 * @param sqlqueruid inserted query uid
978 * @param queryid dht query id
979 * @param type type of the query
980 * @param hops number of hops query traveled
981 * @param succeeded whether or not query was successful
982 * @param node the node the query hit
983 * @param key the key of the query
984 *
985 * @return GNUNET_OK on success, GNUNET_SYSERR on failure.
936 */ 986 */
937int 987int
938add_query (unsigned long long *sqlqueryuid, unsigned long long queryid, 988add_query (unsigned long long *sqlqueryuid, unsigned long long queryid,
@@ -1004,6 +1054,18 @@ add_query (unsigned long long *sqlqueryuid, unsigned long long queryid,
1004 1054
1005/* 1055/*
1006 * Inserts the specified route information into the dhttests.routes table 1056 * Inserts the specified route information into the dhttests.routes table
1057 *
1058 * @param sqlqueruid inserted query uid
1059 * @param queryid dht query id
1060 * @param type type of the query
1061 * @param hops number of hops query traveled
1062 * @param succeeded whether or not query was successful
1063 * @param node the node the query hit
1064 * @param key the key of the query
1065 * @param from_node the node that sent the message to node
1066 * @param to_node next node to forward message to
1067 *
1068 * @return GNUNET_OK on success, GNUNET_SYSERR on failure.
1007 */ 1069 */
1008int 1070int
1009add_route (unsigned long long *sqlqueryuid, unsigned long long queryid, 1071add_route (unsigned long long *sqlqueryuid, unsigned long long queryid,
@@ -1159,7 +1221,7 @@ libgnunet_plugin_dhtlog_mysql_init (void * cls)
1159} 1221}
1160 1222
1161/** 1223/**
1162 * Shutdown the module. 1224 * Shutdown the plugin.
1163 */ 1225 */
1164void * 1226void *
1165libgnunet_plugin_dhtlog_mysql_done (void * cls) 1227libgnunet_plugin_dhtlog_mysql_done (void * cls)