adjust naming convention and initial config support

This commit is contained in:
2025-04-24 17:24:13 +02:00
parent b4f71b0c53
commit dd9e2f557b
19 changed files with 217 additions and 263 deletions

View File

@@ -4,26 +4,23 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
/**
* @brief Prints each IP address associated with a host
*
* @param hostname[in] Hostname
* @param port[in] Port
* @param[in] hostname Hostname
* @param[in] port Port
*/
void print_ips(const char *hostname, const char *port);
void cws_utils_print_ips(const char *hostname, const char *port);
/**
* @brief Retrieves the client ip from the sockaddr_storage and put it in the ip str
*
* @param sa[in] The sockaddr_storage of the client
* @param ip[out] The IP of the client
* @param[in] sa The sockaddr_storage of the client
* @param[out] ip The IP of the client
*/
void get_client_ip(struct sockaddr_storage *sa, char *ip);
void cws_utils_get_client_ip(struct sockaddr_storage *sa, char *ip);
#endif