Created a functional basic constructor for Server class

This commit is contained in:
iherman-
2026-05-07 13:01:57 +02:00
parent 3a43f9d2bd
commit 0c29c50e23
3 changed files with 50 additions and 13 deletions

View File

@@ -6,7 +6,7 @@
/* By: iherman- <iherman-@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/05/06 17:18:11 by iherman- #+# #+# */
/* Updated: 2026/05/06 17:41:04 by iherman- ### ########.fr */
/* Updated: 2026/05/07 13:00:39 by iherman- ### ########.fr */
/* */
/* ************************************************************************** */
@@ -33,14 +33,22 @@
#include <poll.h>
// C++ lib functions
#include <iostream>
# include <iostream>
# include <string>
# include <sstream>
# include <cstring>
# define PORT_DEFAULT 9898
class Server
{
private:
static const int kConnectionQueueLimit;
int port_;
int serverSocket_;
std::string password_;
public:
Server();
@@ -48,6 +56,8 @@ class Server
~Server();
Server &operator=(const Server& other);
void run();
};
#endif // SERVER_HPP