class OpenSSL::SSL::SSLSocket

Public Instance Methods

getbyte() click to toggle source
# File lib/mqtt/openssl_fix.rb, line 12
def getbyte
  byte = read(1)
  byte && unpack_byte(byte)
end

Private Instance Methods

unpack_byte(str) click to toggle source
# File lib/mqtt/openssl_fix.rb, line 20
def unpack_byte(str)
  str.unpack1('C')
end