diff --git a/easysock.h b/easysock.h index 105b19e..f2066a8 100644 --- a/easysock.h +++ b/easysock.h @@ -50,5 +50,9 @@ It prints the error returned by 'connect' if something went wrong, and exits wit int create_remote (int network,char transport,char* address,int port,struct sockaddr* remote_addr_struct); +/* check_ip_ver - This function checks if the given string is an IPv4 address (returns 4), +IPv6 address (returns 6) or neither (returns -1). + +int check_ip_ver(char* address); #endif