Added include guards to header files

This commit is contained in:
2024-02-14 18:32:01 -05:00
parent 195d6c4b4b
commit 26427fa257
5 changed files with 22 additions and 5 deletions

View File

@@ -1,7 +1,10 @@
#include "sock.hpp"
#ifndef _CLIENT_H
#define _CLIENT_H
#include "includes/sock.hpp"
#include "includes/exception_consts.hpp"
/*
Client class - Defines a TCP/UDP client.
- The constructor takes in a **remote** address and port, and connects the client to that address/port.
Client class - Inherits from 'Sock' class - Defines a TCP/UDP client. The only method that is overriden is the 'create_socket' method.
*/
class Client : public Sock {
@@ -25,3 +28,4 @@ public:
/* TODO - Add comments to better explain the inheritance and polymorphism going on */
};
#endif