Fixed socket lib compile without SSL

This commit is contained in:
Thulinma 2021-08-09 11:38:20 +02:00
parent 0cd4ae17b7
commit dfcb4ecb06

View file

@ -91,10 +91,10 @@ namespace Socket{
bool iread(Buffer &buffer, int flags = 0); ///< Incremental write call that is compatible with Socket::Buffer. bool iread(Buffer &buffer, int flags = 0); ///< Incremental write call that is compatible with Socket::Buffer.
bool iwrite(std::string &buffer); ///< Write call that is compatible with std::string. bool iwrite(std::string &buffer); ///< Write call that is compatible with std::string.
void setBoundAddr(); void setBoundAddr();
#ifdef SSL
/// optional extension that uses mbedtls for SSL
protected: protected:
std::string lastErr; ///< Stores last error, if any. std::string lastErr; ///< Stores last error, if any.
#ifdef SSL
/// optional extension that uses mbedtls for SSL
bool sslConnected; bool sslConnected;
int ssl_iread(void *buffer, int len, int flags = 0); ///< Incremental read call. 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. unsigned int ssl_iwrite(const void *buffer, int len); ///< Incremental write call.