Class: Net::FTP::BufferedSSLSocket
- Inherits:
-
BufferedSocket
- Object
- BufferedIO
- BufferedSocket
- Net::FTP::BufferedSSLSocket
- Defined in:
- lib/net/ftp.rb
Instance Attribute Summary
Attributes inherited from BufferedIO
#continue_timeout, #debug_output, #io, #read_timeout, #write_timeout
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
Methods inherited from BufferedIO
#close, #closed?, #eof?, #inspect, #read, #read_all, #readline, #readuntil, #write, #writeline
Constructor Details
#initialize(*args, **options) ⇒ BufferedSSLSocket
Returns a new instance of BufferedSSLSocket.
1500 1501 1502 1503 |
# File 'lib/net/ftp.rb', line 1500 def initialize(*args, **) super @is_shutdown = false end |
Instance Method Details
#send(mesg, flags, dest = nil) ⇒ Object
1512 1513 1514 1515 |
# File 'lib/net/ftp.rb', line 1512 def send(mesg, flags, dest = nil) # Ignore flags and dest. @io.write(mesg) end |
#shutdown(*args) ⇒ Object
1505 1506 1507 1508 1509 1510 |
# File 'lib/net/ftp.rb', line 1505 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 |