Service mode flag as argument in start function of Server

This commit is contained in:
2025-04-30 21:36:32 +03:00
parent f0c7bb3f18
commit 4402bbfe3f
3 changed files with 10 additions and 11 deletions

View File

@@ -22,8 +22,8 @@ private:
void handle_client(int socket, bool flag, int steps);
bool check_status(Maze& maze);
public:
Server(const std::string& host, const unsigned short port, bool service_flag);
void start(int steps = 10);
Server(const std::string& host, const unsigned short port);
void start(int steps, bool service_flag);
};
#endif