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;