More SSL stuff (still doesn't work :/).

This commit is contained in:
2024-08-27 19:52:08 +02:00
parent 0be34a845a
commit a43f92fb58
7 changed files with 156 additions and 28 deletions

View File

@@ -70,6 +70,7 @@ enum class [[nodiscard]] StreamError
NOT_SUPPORTED = 2,
CONNECTION_CLOSED = 3,
PROTOCOL_ERROR = 4,
WOULD_BLOCK = 5,
UNKNOWN_ERROR = -1
};
@@ -434,6 +435,8 @@ inline const char* errorName(StreamError error) noexcept
return "connection closed";
case StreamError::PROTOCOL_ERROR:
return "protocol error";
case StreamError::WOULD_BLOCK:
return "would block";
case StreamError::UNKNOWN_ERROR:
return "unknown error";
}