Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

OpenSSL::SSL::SSLSocket#sysread

ssl.sysread(length) => string
ssl.sysread(length, buffer) => buffer

Reads length bytes from the SSL connection. If a pre-allocated buffer is provided the data will be written into it.

See also #sysclose #sysread_nonblock #stop #syswrite also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1