Added 'char_to_socktype' function

master
Aadhavan Srinivasan 2 years ago
parent 7a09e7188c
commit ec3698c14a

@ -60,4 +60,10 @@ AF_INET6 respectively. */
int int_to_inet(int network); 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 #endif

Loading…
Cancel
Save