diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_service_lib.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/include/gnunet_service_lib.h b/src/include/gnunet_service_lib.h index 31abe0ab6..75b880530 100644 --- a/src/include/gnunet_service_lib.h +++ b/src/include/gnunet_service_lib.h | |||
@@ -49,33 +49,6 @@ extern "C" | |||
49 | 49 | ||
50 | 50 | ||
51 | /** | 51 | /** |
52 | * Get the list of addresses that a server for the given service | ||
53 | * should bind to. | ||
54 | * | ||
55 | * @param service_name name of the service | ||
56 | * @param cfg configuration (which specifies the addresses) | ||
57 | * @param addrs set (call by reference) to an array of pointers to the | ||
58 | * addresses the server should bind to and listen on; the | ||
59 | * array will be NULL-terminated (on success) | ||
60 | * @param addr_lens set (call by reference) to an array of the lengths | ||
61 | * of the respective `struct sockaddr` struct in the @a addrs | ||
62 | * array (on success) | ||
63 | * @return number of addresses found on success, | ||
64 | * #GNUNET_SYSERR if the configuration | ||
65 | * did not specify reasonable finding information or | ||
66 | * if it specified a hostname that could not be resolved; | ||
67 | * #GNUNET_NO if the number of addresses configured is | ||
68 | * zero (in this case, '* @a addrs' and '* @a addr_lens' will be | ||
69 | * set to NULL). | ||
70 | */ | ||
71 | int | ||
72 | GNUNET_SERVICE_get_server_addresses (const char *service_name, | ||
73 | const struct GNUNET_CONFIGURATION_Handle *cfg, | ||
74 | struct sockaddr ***addrs, | ||
75 | socklen_t **addr_lens); | ||
76 | |||
77 | |||
78 | /** | ||
79 | * Function called by the service's run | 52 | * Function called by the service's run |
80 | * method to run service-specific setup code. | 53 | * method to run service-specific setup code. |
81 | * | 54 | * |