From 100dc94bd3ad6088198fec99a19489e8bfe30c25 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Fri, 18 Jul 2025 11:11:45 -0400 Subject: [PATCH] Add function definition to header file --- includes/sock.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/sock.hpp b/includes/sock.hpp index 0b45a55..1490daf 100644 --- a/includes/sock.hpp +++ b/includes/sock.hpp @@ -56,6 +56,9 @@ public: /* Returns socket identifier */ int getSockFD(); + /* Returns whether or not the given socket is connected to a remote address */ + bool has_remote_address(); + /* This is a pure virtual function (AKA an abstract function). It's purpose is to be redefined by the children classes (client and server). */ virtual int get_type() = 0;