Function gnunet_sys::GNUNET_CLIENT_test [−][src]
pub unsafe extern "C" fn GNUNET_CLIENT_test(
cfg: *const GNUNET_CONFIGURATION_Handle,
service_name: *const c_char
) -> c_int
Test if the port or UNIXPATH of the given @a service_name is in use and thus (most likely) the respective service is up.
@param cfg our configuration @param service_name name of the service to connect to @return #GNUNET_YES if the service is (likely) up (or running remotely), #GNUNET_NO if the service is (definitively) down, #GNUNET_SYSERR if the configuration does not give us the necessary information about the service, or if we could not check (i.e. socket() failed)