constexpr int UP_SPEED = 50;
constexpr int DOWN_SPEED = 10;
-constexpr int DEFALUT_SERVER = 1;
+constexpr int DEFAULT_SERVER = 1;
constexpr int CUSTOM_SERVER = 2;
constexpr int STOP = 3;
int processUserInput()
{
- int userInput;
+ int userInput = 0;
std::cin >> userInput;
if (std::cin.fail())
{
{
switch (processUserInput())
{
- case DEFALUT_SERVER:
+ case DEFAULT_SERVER:
// Creation of Resource & Auto control for all requests from Client.
initServer();
return CORRECT_INPUT;
{
std::cout << "main exception : " << e.what() << std::endl;
}
+ catch (...)
+ {
+ std::cout << "main exception : unknown" << std::endl;
+ }
std::cout << "Stopping the server" << std::endl;
}