Added 'char_to_socktype' function
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user