Socket library error handling

This commit is contained in:
Thulinma 2020-03-09 19:26:21 +01:00
parent cd19cca36b
commit b4fb0ff4a2
2 changed files with 43 additions and 22 deletions

View file

@ -92,6 +92,7 @@ namespace Socket{
#ifdef SSL
/// optional extension that uses mbedtls for SSL
protected:
std::string lastErr; ///< Stores last error, if any.
bool sslConnected;
int ssl_iread(void *buffer, int len, int flags = 0); ///< Incremental read call.
unsigned int ssl_iwrite(const void *buffer, int len); ///< Incremental write call.