Created a functional basic constructor for Server class
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user