Package ganeti :: Package rapi :: Module client :: Class _SslSocketWrapper
[hide private]
[frames] | no frames]

Class _SslSocketWrapper

source code


Instance Methods [hide private]
 
__init__(self, sock)
Initializes this class.
source code
 
__getattr__(self, name)
Forward everything to underlying socket.
source code
 
makefile(self, mode, bufsize)
Fake makefile method.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, sock)
(Constructor)

source code 

Initializes this class.

Overrides: object.__init__

makefile(self, mode, bufsize)

source code 

Fake makefile method.

makefile() on normal file descriptors uses dup2(2), which doesn't work with SSL sockets and therefore is not implemented by pyOpenSSL. This fake method works with the httplib module, but might not work for other modules.