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 | d59bfb2d068212eb0eb649080980d6596cd7410d (patch) | |
tree | e385983d3d374caa63e5f2d64e80a367139fd2fa /lib/net | |
parent | 5a5cc211f4e1a349dcde29ad1be35c7fe264c79f (diff) |
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: |