Added a virtual destructor to the Sock class, which would allow Server and Client to override it

This commit is contained in:
2024-02-29 20:46:14 -06:00
parent c2c095dfa7
commit 8e3488b904
2 changed files with 7 additions and 0 deletions

View File

@@ -34,6 +34,9 @@ public:
/* Default constructor */
Sock() {}
/* Virtual destructor */
virtual ~Sock();
/* Regular constructor - defined in sock.cpp */
Sock(int ip_ver, char protocol, const char* address, int port);