Skip to content
Snippets Groups Projects
Commit b0cb49e6 authored by Armin Co's avatar Armin Co
Browse files

Socket debugging

Read error an RPI (bad address)
parent f059ae1f
Branches
No related tags found
No related merge requests found
......@@ -73,6 +73,7 @@ void Socket::close()
}
}
}
spdlog::debug("socket closed");
m_fd = -1;
}
......
......@@ -9,7 +9,7 @@
int main(int argc, char** argv)
{
spdlog::set_level(spdlog::level::info);
spdlog::set_level(spdlog::level::debug);
if (argc != 3)
{
......
......@@ -62,10 +62,10 @@ constexpr double power_wind[] {
1612, 1890, 2000, 2100
};
class Day
class ModelState
{
public:
Day()
ModelState()
{
std::srand(std::time(nullptr));
}
......@@ -168,7 +168,7 @@ void run_sim()
modell.put_modell_into_state(SmartGridModell::DefaultState::Off);
Day day{};
ModelState day{};
bool active {true};
while (active)
......@@ -190,7 +190,7 @@ void test_x64()
ServerSocket server(8080);
bool finished {false};
Day day{};
ModelState day{};
while (!finished)
{
DataSocket accept = server.accept();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment