Moved 'check_ip_ver' function to easysock.c
This commit is contained in:
@@ -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);
|
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
|
#endif
|
||||||
|
Reference in New Issue
Block a user