Client class now has getters and setters, and server has 4 functions for main loop

This commit is contained in:
aortigos
2026-04-16 22:28:47 +02:00
parent b925cc74c7
commit 00a08b4f30
5 changed files with 139 additions and 56 deletions

View File

@@ -14,12 +14,12 @@
int main(int argc, char **argv)
{
if (argc != 2)
if (argc != 3)
{
std::cout << "Port is needed" << std::endl;
return (1);
}
Server sv(atoi(argv[1]));
Server sv(atoi(argv[1]), argv[2]);
sv.run();