Class: Net::FTP::BufferedSSLSocket

Inherits:
BufferedSocket show all
Defined in:
lib/net/ftp.rb

Instance Method Summary collapse

Methods inherited from BufferedSocket

#gets, #read, #readline

Constructor Details

#initialize(*args, **options) ⇒ BufferedSSLSocket

Returns a new instance of BufferedSSLSocket.



1522
1523
1524
1525
# File 'lib/net/ftp.rb', line 1522

def initialize(*args, **options)
  super
  @is_shutdown = false
end

Instance Method Details

#send(mesg, flags, dest = nil) ⇒ Object



1534
1535
1536
1537
# File 'lib/net/ftp.rb', line 1534

def send(mesg, flags, dest = nil)
  # Ignore flags and dest.
  @io.write(mesg)
end

#shutdown(*args) ⇒ Object



1527
1528
1529
1530
1531
1532
# File 'lib/net/ftp.rb', line 1527

def shutdown(*args)
  # SSL_shutdown() will be called from SSLSocket#close, and
  # SSL_shutdown() will send the "close notify" alert to the peer,
  # so shutdown(2) should not be called.
  @is_shutdown = true
end