From f3ad4fbf99dec753995020d9bf09ec05c42a453d Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Wed, 21 Feb 2024 22:27:23 -0500 Subject: [PATCH] Defined constants for TCP and UDP, instead of using the characters themselves --- includes/easysock.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/easysock.hpp b/includes/easysock.hpp index c4db9c3..912d6ce 100644 --- a/includes/easysock.hpp +++ b/includes/easysock.hpp @@ -18,8 +18,8 @@ /* Constants that can be used in place of characters, when specifying the transport layer protocol */ -const char ES_TCP 'T'; -const char ES_UDP 'U'; +const char ES_TCP = 'T'; +const char ES_UDP = 'U'; /* This function takes: a layer 3 - network layer - integer, which must be '4' for IPv4