|
|
|
@ -4,8 +4,7 @@
|
|
|
|
|
#include "includes/exception_consts.hpp"
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
Server class - Defines a TCP/UDP server.
|
|
|
|
|
- The constructor takes in a **local** address and port, and creates a listening socket on that address/port.
|
|
|
|
|
Server class - Inherits from 'Sock' class - Defines a TCP/UDP server.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
class Server : public Sock {
|
|
|
|
@ -27,6 +26,5 @@ public:
|
|
|
|
|
|
|
|
|
|
Server(int ip_ver, char protocol, const char* address, int port) : Sock(ip_ver, protocol, address, port) {}
|
|
|
|
|
|
|
|
|
|
/* TODO - Add comments to better explain the inheritance and polymorphism going on */
|
|
|
|
|
};
|
|
|
|
|
#endif
|
|
|
|
|