Added inet_to_int function

master
Aadhavan Srinivasan 2 years ago committed by Rockingcool
parent 75a9c7f6c3
commit ddb1b16c93

@ -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

Loading…
Cancel
Save