blob: 39d975b1c88a6da99f51bba0ebd6c58858da9d92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
=begin
= $RCSfile$ -- Ruby-space definitions that completes C-space funcs for SSL
= Info
'OpenSSL for Ruby 2' project
Copyright (C) 2001 GOTOU YUUZOU <gotoyuzo@notwork.org>
All rights reserved.
= Licence
This program is licenced under the same licence as Ruby.
(See the file 'LICENCE'.)
= Version
$Id$
=end
require 'openssl/buffering'
module OpenSSL
module SSL
class SSLSocket
include Buffering
def addr
@io.addr
end
def peeraddr
@io.peeraddr
end
def getsockopt(level, optname, optval)
@io.setsockopt(level, optname, optval)
end
def setsockopt(level, optname)
@io.setsockopt(level, optname)
end
def fcntl(*args)
@io.fcntl(*args)
end
def closed?
@io.closed?
end
end
end
end
|