diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-07-21 12:49:28 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-07-21 12:49:28 +0000 |
commit | 374dec07fb7a62f2413f793f4a16c84bb1b2e8fd (patch) | |
tree | 5c6e0d000b3635b64d1cb907b3de98ccf35eabca /src/dht | |
parent | 2c8cfaf46539ccdac9d8f95323fdb9ab87bd31f4 (diff) | |
download | gnunet-374dec07fb7a62f2413f793f4a16c84bb1b2e8fd.tar.gz gnunet-374dec07fb7a62f2413f793f4a16c84bb1b2e8fd.zip |
minor blurb change
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/plugin_dhtlog_dummy.c | 2 | ||||
-rw-r--r-- | src/dht/plugin_dhtlog_mysql.c | 68 |
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 | */ |
215 | void * | 215 | void * |
216 | libgnunet_plugin_dhtlog_dummy_done (void * cls) | 216 | libgnunet_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 | */ |
612 | int | 630 | int |
613 | add_trial (unsigned long long *trialuid, int num_nodes, int topology, | 631 | add_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 | */ |
732 | int | 755 | int |
733 | add_dhtkey (unsigned long long *dhtkeyuid, const GNUNET_HashCode * dhtkey) | 756 | add_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 | */ |
819 | int | 847 | int |
820 | add_node (unsigned long long *nodeuid, struct GNUNET_PeerIdentity * node) | 848 | add_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 | */ |
859 | int | 894 | int |
860 | update_trials (unsigned long long trialuid, | 895 | update_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 | */ |
903 | int | 943 | int |
904 | add_connections (unsigned long long trialuid, unsigned int totalConnections) | 944 | add_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 | */ |
937 | int | 987 | int |
938 | add_query (unsigned long long *sqlqueryuid, unsigned long long queryid, | 988 | add_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 | */ |
1008 | int | 1070 | int |
1009 | add_route (unsigned long long *sqlqueryuid, unsigned long long queryid, | 1071 | add_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 | */ |
1164 | void * | 1226 | void * |
1165 | libgnunet_plugin_dhtlog_mysql_done (void * cls) | 1227 | libgnunet_plugin_dhtlog_mysql_done (void * cls) |