diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-22 05:17:45 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-22 05:17:45 +0000 |
commit | c3b3a34c03df4b65154700132ba5c375dffa8802 (patch) | |
tree | e385983d3d374caa63e5f2d64e80a367139fd2fa /lib/net | |
parent | ccda1967031de6000492892c53012a8cd8a1a700 (diff) | |
download | ruby-c3b3a34c03df4b65154700132ba5c375dffa8802.tar.gz |
Add BufferedSSLSocket#send.
SSLSocket#send is not defined, so use #write instead. flags and dest are
ignored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/ftp.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index 2f86edfdd5..bb280139db 100644 --- a/lib/net/ftp.rb +++ b/lib/net/ftp.rb @@ -1446,6 +1446,11 @@ module Net # SSL_shutdonw() will send the "close notify" alert to the peer, # so shutdown(2) should not be called. end + + def send(mesg, flags, dest = nil) + # Ignore flags and dest. + @io.write(mesg) + end end end # :startdoc: |