Added include guards to header files
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user