Class: Net::FTP::BufferedSSLSocket
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
BufferedSocket ,
BufferedIO
|
|
Instance Chain:
self,
BufferedSocket ,
BufferedIO
|
|
Inherits: |
Net::FTP::BufferedSocket
|
Defined in: | lib/net/ftp.rb |
Class Method Summary
- .new(*args, **options) ⇒ BufferedSSLSocket constructor
Instance Method Summary
BufferedSocket
- Inherited
Constructor Details
.new(*args, **options) ⇒ BufferedSSLSocket
# File 'lib/net/ftp.rb', line 1525
def initialize(*args, ** ) super @is_shutdown = false end
Instance Method Details
#rbuf_fill (private)
[ GitHub ]# File 'lib/net/ftp.rb', line 1544
def rbuf_fill if @is_shutdown raise EOFError, "shutdown has been called" else super end end
#send(mesg, flags, dest = nil)
[ GitHub ]# File 'lib/net/ftp.rb', line 1537
def send(mesg, flags, dest = nil) # Ignore flags and dest. @io.write(mesg) end
#shutdown(*args)
[ GitHub ]# File 'lib/net/ftp.rb', line 1530
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