Added inet_to_int function

This commit is contained in:
2023-03-08 15:45:47 -06:00
parent 2e5d2e64c0
commit 25bbcb620e

View File

@@ -2,7 +2,9 @@
#define EASYSOCK_H_
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <stdio.h>
@@ -66,4 +68,8 @@ the given characters is neither of these) and return the appropriate SOCKTYPE va
int char_to_socktype(char transport);
/* inet_to_int - Takes an int value that corresponds to AF_INET or AF_INET6,
and returns the appropriate int value. */
int inet_to_int(int af_type);
#endif