Add TCP support #12

Merged
Persson-dev merged 12 commits from tcp into main 2025-03-03 10:04:42 +00:00
Showing only changes of commit afc4189450 - Show all commits

View File

@@ -100,8 +100,8 @@ DataBuffer TcpSocket::Read(std::size_t a_Amount) {
int err = errno;
#endif
if (err == WOULDBLOCK) {
m_Status = Status::Error;
throw SocketError("Error while reading");
// we are in non blocking mode and nothing is available
return {};
}
Disconnect();