diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-07-17 22:25:44 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-07-17 22:25:44 +0000 |
commit | 253d546750130fc4471a7c53355b6f5d58326fc3 (patch) | |
tree | b7c567693f7a4c2e47782d3b05538d8586942dd4 /src/testbed/testbed_api_hosts.h | |
parent | 89daff335a418fb67ce8ea4d3e1e128e96d19877 (diff) | |
download | gnunet-253d546750130fc4471a7c53355b6f5d58326fc3.tar.gz gnunet-253d546750130fc4471a7c53355b6f5d58326fc3.zip |
helper reply with modified config
Diffstat (limited to 'src/testbed/testbed_api_hosts.h')
-rw-r--r-- | src/testbed/testbed_api_hosts.h | 111 |
1 files changed, 35 insertions, 76 deletions
diff --git a/src/testbed/testbed_api_hosts.h b/src/testbed/testbed_api_hosts.h index 21e9520e2..2c89e29ac 100644 --- a/src/testbed/testbed_api_hosts.h +++ b/src/testbed/testbed_api_hosts.h | |||
@@ -32,48 +32,6 @@ | |||
32 | 32 | ||
33 | 33 | ||
34 | /** | 34 | /** |
35 | * Wrapper around | ||
36 | */ | ||
37 | struct GNUNET_TESTBED_HelperHandle | ||
38 | { | ||
39 | /** | ||
40 | * The process handle | ||
41 | */ | ||
42 | struct GNUNET_HELPER_Handle *helper; | ||
43 | |||
44 | /** | ||
45 | * The send handle for the helper | ||
46 | */ | ||
47 | struct GNUNET_HELPER_SendHandle *helper_shandle; | ||
48 | |||
49 | /** | ||
50 | * The port number for ssh; used for helpers starting ssh | ||
51 | */ | ||
52 | char *port; | ||
53 | |||
54 | /** | ||
55 | * The ssh destination string; used for helpers starting ssh | ||
56 | */ | ||
57 | char *dst; | ||
58 | |||
59 | /** | ||
60 | * The helper exception callback | ||
61 | */ | ||
62 | GNUNET_HELPER_ExceptionCallback exp_cb; | ||
63 | |||
64 | /** | ||
65 | * The closure for exp_cb | ||
66 | */ | ||
67 | void *exp_cb_cls; | ||
68 | |||
69 | /** | ||
70 | * Is the helper stopped? | ||
71 | */ | ||
72 | int is_stopped; | ||
73 | }; | ||
74 | |||
75 | |||
76 | /** | ||
77 | * Lookup a host by ID. | 35 | * Lookup a host by ID. |
78 | * | 36 | * |
79 | * @param id global host ID assigned to the host; 0 is | 37 | * @param id global host ID assigned to the host; 0 is |
@@ -144,40 +102,41 @@ GNUNET_TESTBED_host_get_ssh_port_ (const struct GNUNET_TESTBED_Host *host); | |||
144 | struct GNUNET_TESTBED_HelperHandle; | 102 | struct GNUNET_TESTBED_HelperHandle; |
145 | 103 | ||
146 | 104 | ||
147 | /** | 105 | /* /\** */ |
148 | * Run a given helper process at the given host. Communication | 106 | /* * Run a given helper process at the given host. Communication */ |
149 | * with the helper will be via GNUnet messages on stdin/stdout. | 107 | /* * with the helper will be via GNUnet messages on stdin/stdout. */ |
150 | * Runs the process via 'ssh' at the specified host, or locally. | 108 | /* * Runs the process via 'ssh' at the specified host, or locally. */ |
151 | * Essentially an SSH-wrapper around the 'gnunet_helper_lib.h' API. | 109 | /* * Essentially an SSH-wrapper around the 'gnunet_helper_lib.h' API. */ |
152 | * | 110 | /* * */ |
153 | * @param controller_ip the ip address of the controller. Will be set as TRUSTED | 111 | /* * @param controller_ip the ip address of the controller. Will be set as TRUSTED */ |
154 | * host when starting testbed controller at host | 112 | /* * host when starting testbed controller at host */ |
155 | * @param host host to use, use "NULL" for localhost | 113 | /* * @param host host to use, use "NULL" for localhost */ |
156 | * @param binary_argv binary name and command-line arguments to give to the | 114 | /* * @param binary_argv binary name and command-line arguments to give to the */ |
157 | * binary | 115 | /* * binary */ |
158 | * @param cfg template configuration to use for the remote controller; the | 116 | /* * @param cfg template configuration to use for the remote controller; the */ |
159 | * remote controller will be started with a slightly modified | 117 | /* * remote controller will be started with a slightly modified */ |
160 | * configuration (port numbers, unix domain sockets and service home | 118 | /* * configuration (port numbers, unix domain sockets and service home */ |
161 | * values are changed as per TESTING library on the remote host) | 119 | /* * values are changed as per TESTING library on the remote host) */ |
162 | * @param cb the callback to run when helper process dies; cannot be NULL | 120 | /* * @param cb the callback to run when helper process dies; cannot be NULL */ |
163 | * @param cb_cls the closure for the above callback | 121 | /* * @param cb_cls the closure for the above callback */ |
164 | * @return handle to terminate the command, NULL on error | 122 | /* * @return handle to terminate the command, NULL on error */ |
165 | */ | 123 | /* *\/ */ |
166 | struct GNUNET_TESTBED_HelperHandle * | 124 | /* struct GNUNET_TESTBED_HelperHandle * */ |
167 | GNUNET_TESTBED_host_run_ (const char *controller_ip, | 125 | /* GNUNET_TESTBED_host_run_ (const char *controller_ip, */ |
168 | const struct GNUNET_TESTBED_Host *host, | 126 | /* const struct GNUNET_TESTBED_Host *host, */ |
169 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 127 | /* const struct GNUNET_CONFIGURATION_Handle *cfg, */ |
170 | GNUNET_HELPER_ExceptionCallback cb, | 128 | /* GNUNET_HELPER_ExceptionCallback cb, */ |
171 | void *cb_cls); | 129 | /* void *cb_cls); */ |
172 | 130 | ||
173 | 131 | ||
174 | /** | 132 | |
175 | * Stops a helper in the HelperHandle using GNUNET_HELPER_stop | 133 | /* /\** */ |
176 | * | 134 | /* * Stops a helper in the HelperHandle using GNUNET_HELPER_stop */ |
177 | * @param handle the handle returned from GNUNET_TESTBED_host_start_ | 135 | /* * */ |
178 | */ | 136 | /* * @param handle the handle returned from GNUNET_TESTBED_host_start_ */ |
179 | void | 137 | /* *\/ */ |
180 | GNUNET_TESTBED_host_stop_ (struct GNUNET_TESTBED_HelperHandle *handle); | 138 | /* void */ |
139 | /* GNUNET_TESTBED_host_stop_ (struct GNUNET_TESTBED_HelperHandle *handle); */ | ||
181 | 140 | ||
182 | 141 | ||
183 | /** | 142 | /** |