| 106 | // -- reading and writing ------------------------------------------------------ |
| 107 | |
| 108 | ptrdiff_t connection::read(byte_span buf) { |
| 109 | ERR_clear_error(); |
| 110 | return SSL_read(native(pimpl_), buf.data(), static_cast<int>(buf.size())); |
| 111 | } |
| 112 | |
| 113 | ptrdiff_t connection::write(const_byte_span buf) { |
| 114 | ERR_clear_error(); |