Added 'char_to_socktype' function

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

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

Loading…
Cancel
Save