Class: Net::FTP::BufferedSSLSocket
- Inherits:
-
BufferedSocket
- Object
- BufferedIO
- BufferedSocket
- Net::FTP::BufferedSSLSocket
- Defined in:
- lib/net/ftp.rb
Instance Method Summary collapse
-
#initialize(*args, **options) ⇒ BufferedSSLSocket
constructor
A new instance of BufferedSSLSocket.
- #send(mesg, flags, dest = nil) ⇒ Object
- #shutdown(*args) ⇒ Object
Methods inherited from BufferedSocket
Constructor Details
#initialize(*args, **options) ⇒ BufferedSSLSocket
Returns a new instance of BufferedSSLSocket.
1546 1547 1548 1549 |
# File 'lib/net/ftp.rb', line 1546 def initialize(*args, **) super @is_shutdown = false end |
Instance Method Details
#send(mesg, flags, dest = nil) ⇒ Object
1558 1559 1560 1561 |
# File 'lib/net/ftp.rb', line 1558 def send(mesg, flags, dest = nil) # Ignore flags and dest. @io.write(mesg) end |
#shutdown(*args) ⇒ Object
1551 1552 1553 1554 1555 1556 |
# File 'lib/net/ftp.rb', line 1551 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 |