close one notification to close all

This commit is contained in:
2026-02-02 21:46:50 +01:00
parent 49ac6cec90
commit ed1a9a8605
21 changed files with 352 additions and 146 deletions

View File

@@ -1,7 +1,7 @@
#pragma once
#include <cassert>
#include <iostream>
#include <spdlog/spdlog.h>
#include <string>
#include <sys/socket.h>
#include <vector>
@@ -25,9 +25,9 @@ class SocketHelper {
buffer[bytesRead] = '\0';
data = std::string(buffer);
} else if (bytesRead == 0) {
std::cerr << "Socket closed by peer" << std::endl;
spdlog::warn("Socket closed by peer");
} else {
std::cerr << "Error reading from socket" << std::endl;
spdlog::error("Error reading from socket");
}
auto delimiterPos = data.find(delimiter);