Updated header files to reflect recent change in implementation files

This commit is contained in:
2024-02-21 22:26:59 -05:00
parent 4fce513211
commit f0e30f28e9
3 changed files with 35 additions and 6 deletions

View File

@@ -7,6 +7,10 @@ It inherits from the 'Sock' class. */
class Server : public Sock {
private:
/* Address of the peer/client */
std::string peer_addr;
public:
/* Constructors */
Server() {}
@@ -29,5 +33,11 @@ public:
/* Receive data from peer socket */
std::string recvAll();
/* Return the address of the peer */
std::string get_peer_addr();
/* Return the type of socket */
int get_type() override;
};
#endif