8 #ifndef SKN_NETWORK_HELPERS_H__ 9 #define SKN_NETWORK_HELPERS_H__ 12 #include <sys/utsname.h> 46 extern int skn_logger(
const char *level,
const char *format, ...);
84 #endif // SKN_NETWORK_HELPERS_H__
int generate_loadavg_info(char *msg)
int skn_handle_locator_command_line(int argc, char **argv)
void * service_registry_get_entry_field_ref(PRegistryEntry prent, char *field)
int skn_display_manager_message_consumer_startup(PDisplayManager pdm)
void get_default_interface_name_and_ipv4_address(char *intf, char *ipv4)
char * gd_pch_effective_userid
void service_registry_entry_response_message_log(const char *response)
int service_registry_entry_count(PServiceRegistry psr)
void skn_display_manager_message_consumer_shutdown(PDisplayManager pdm)
long skn_get_number_of_cpu_cores()
int service_registry_provider(int i_socket, char *response)
PRegistryEntry service_registry_find_entry(PServiceRegistry psreg, char *serviceName)
char gd_ch_hostName[SZ_CHAR_BUFF]
int service_registry_list_entries(PServiceRegistry psr)
void service_registry_destroy(PServiceRegistry psreg)
char gd_ch_ipAddress[SZ_CHAR_BUFF]
char * skn_strip(char *alpha)
PServiceRegistry service_registry_get_via_udp_broadcast(int i_socket, char *request)
int get_broadcast_ip_array(PIPBroadcastArray paB)
double skn_duration_in_milliseconds(struct timeval *pstart, struct timeval *pend)
char gd_ch_program_name[SZ_INFO_BUFF]
int skn_udp_host_create_broadcast_socket(int port, double rcvTimeout)
sig_atomic_t gi_exit_flag
void signals_cleanup(int sig)
char gd_ch_program_desc[SZ_INFO_BUFF]
int generate_uname_info(char *msg)
int get_default_interface_name(char *pchDefaultInterfaceName)
void skn_program_name_and_description_set(const char *name, const char *desc)
int service_registry_valiadate_response_format(const char *response)
int skn_udp_service_request(PServiceRequest psr)
PServiceRegistry service_registry_valiadated_registry(const char *response)
int generate_datetime_info(char *msg)
char * gd_pch_service_name
int skn_udp_host_create_regular_socket(int port, double rcvTimeout)
PServiceRequest skn_service_request_create(PRegistryEntry pre, int host_socket, char *request)
int skn_time_delay(double delay_time)
char gd_ch_intfName[SZ_CHAR_BUFF]
char gd_ch_hostShortName[SZ_CHAR_BUFF]