diff --git a/easysock.h b/easysock.h index b0f5d90..a70b21f 100644 --- a/easysock.h +++ b/easysock.h @@ -60,4 +60,10 @@ AF_INET6 respectively. */ int int_to_inet(int network); +/* char_to_socktype - Takes a character that represents a transport-layer protocol +(currently only supports 'T' for TCP or 'U' for UDP - exits with error code 250 if +the given characters is neither of these) and return the appropriate SOCKTYPE value. */ + +int char_to_socktype(char transport); + #endif