More SSL stuff (still doesn't work :/).
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user