From ec3698c14a92863514e1fa97adb63a6ff5b735b1 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Wed, 8 Mar 2023 11:29:04 -0600 Subject: [PATCH] Added 'char_to_socktype' function --- easysock.h | 6 ++++++ 1 file changed, 6 insertions(+) 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