Made a basic arg parser and shell implementation of the Server class
This commit is contained in:
38
Server/Server.cpp
Normal file
38
Server/Server.cpp
Normal file
@@ -0,0 +1,38 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Server.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: iherman- <iherman-@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/05/06 17:19:12 by iherman- #+# #+# */
|
||||
/* Updated: 2026/05/06 17:40:52 by iherman- ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Server.hpp"
|
||||
|
||||
Server::Server()
|
||||
{
|
||||
std::cout << "Hello from server" << std::endl;
|
||||
}
|
||||
|
||||
Server::Server(int port, const std::string& password)
|
||||
{
|
||||
std::cout << "Server port: " << port << "\nServer Password: " << password << std::endl;
|
||||
}
|
||||
|
||||
Server::~Server()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Server &Server::operator=(const Server& other)
|
||||
{
|
||||
if (this != &other)
|
||||
{
|
||||
std::cout << "operator= called" << std::endl;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
Reference in New Issue
Block a user