11 int main(
int argc,
char *argv[])
15 memset(request, 0,
sizeof(request));
16 strcpy(request,
"Raspberry Pi where are you?");
20 "Collect IPv4 Address/Port Service info from all providers." 32 }
else if (argc == 2) {
33 strcpy(request, argv[1]);
35 skn_logger(
SD_DEBUG,
"Request Message [%s]", request);
51 char *service_name =
"lcd_display_service";
62 skn_logger(
" ",
"\nLCD DisplayService (%s) is located at IPv4: %s:%d\n", pre->
name, pre->
ip, pre->
port);
char * gd_pch_service_name
int service_registry_entry_count(PServiceRegistry psr)
int main(int argc, char *argv[])
void signals_cleanup(int sig)
int skn_handle_locator_command_line(int argc, char **argv)
PServiceRegistry service_registry_get_via_udp_broadcast(int i_socket, char *request)
sig_atomic_t gi_exit_flag
int service_registry_list_entries(PServiceRegistry psr)
void service_registry_destroy(PServiceRegistry psreg)
int skn_udp_host_create_broadcast_socket(int port, double rcvTimeout)
void skn_program_name_and_description_set(const char *name, const char *desc)
PRegistryEntry service_registry_find_entry(PServiceRegistry psreg, char *serviceName)