diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-08-15 16:27:27 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-08-15 16:27:27 +0000 |
commit | 356d73f3e59d50ab3aeee64d6e5384089428747b (patch) | |
tree | b683d79727fa4074b2877d1efd50b53fd454253b /src/include/gnunet_testing_lib.h | |
parent | 2f540d8a505ee8842ea322513b381d7f3b48362d (diff) | |
download | gnunet-356d73f3e59d50ab3aeee64d6e5384089428747b.tar.gz gnunet-356d73f3e59d50ab3aeee64d6e5384089428747b.zip |
- make no distinction between TCP and UDP port while reserving them
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r-- | src/include/gnunet_testing_lib.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h index 3b6fabb6e..f182d8df5 100644 --- a/src/include/gnunet_testing_lib.h +++ b/src/include/gnunet_testing_lib.h | |||
@@ -181,15 +181,13 @@ GNUNET_TESTING_hostkey_get (const struct GNUNET_TESTING_System *system, | |||
181 | 181 | ||
182 | 182 | ||
183 | /** | 183 | /** |
184 | * Reserve a TCP or UDP port for a peer. | 184 | * Reserve a port for a peer. |
185 | * | 185 | * |
186 | * @param system system to use for reservation tracking | 186 | * @param system system to use for reservation tracking |
187 | * @param is_tcp GNUNET_YES for TCP ports, GNUNET_NO for UDP | ||
188 | * @return 0 if no free port was available | 187 | * @return 0 if no free port was available |
189 | */ | 188 | */ |
190 | uint16_t | 189 | uint16_t |
191 | GNUNET_TESTING_reserve_port (struct GNUNET_TESTING_System *system, | 190 | GNUNET_TESTING_reserve_port (struct GNUNET_TESTING_System *system); |
192 | int is_tcp); | ||
193 | 191 | ||
194 | 192 | ||
195 | /** | 193 | /** |
@@ -197,12 +195,10 @@ GNUNET_TESTING_reserve_port (struct GNUNET_TESTING_System *system, | |||
197 | * (used during GNUNET_TESTING_peer_destroy). | 195 | * (used during GNUNET_TESTING_peer_destroy). |
198 | * | 196 | * |
199 | * @param system system to use for reservation tracking | 197 | * @param system system to use for reservation tracking |
200 | * @param is_tcp GNUNET_YES for TCP ports, GNUNET_NO for UDP | ||
201 | * @param port reserved port to release | 198 | * @param port reserved port to release |
202 | */ | 199 | */ |
203 | void | 200 | void |
204 | GNUNET_TESTING_release_port (struct GNUNET_TESTING_System *system, | 201 | GNUNET_TESTING_release_port (struct GNUNET_TESTING_System *system, |
205 | int is_tcp, | ||
206 | uint16_t port); | 202 | uint16_t port); |
207 | 203 | ||
208 | 204 | ||