web.web.wsgiserver.ssl_pyopenssl.SSL_fileobject

Package web :: Package web :: Package wsgiserver :: Module ssl_pyopenssl :: Class SSL_fileobject |
[hide private]
[frames] | no frames]

# Class SSL_fileobject

source code

            object --+
                     |
    socket._fileobject --+
                         |
             CP_fileobject --+
                             |
                            SSL_fileobject

SSL file object attached to a socket object.

Instance Methods | [hide private]
_safe_call(self, is_reader, call, *args, **kwargs) Wrap the given call with SSL error-trapping. | source code
recv(self, *args, **kwargs) | source code
sendall(self, *args, **kwargs) Sendall for non-blocking sockets. | source code
send(self, *args, **kwargs) | source code
Inherited from `CP_fileobject`: `flush`, `read`, `readline` Inherited from `socket._fileobject`: `__del__`, `__init__`, `__iter__`, `close`, `fileno`, `next`, `readlines`, `write`, `writelines` Inherited from `socket._fileobject` (private): `_get_wbuf_len`, `_getclosed` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]
| ssl_timeout = `3`
| ssl_retry = `.01`
Inherited from `socket._fileobject`: `default_bufsize`, `name`

Properties | [hide private]
Inherited from `socket._fileobject`: `bufsize`, `closed`, `mode`, `softspace` Inherited from `socket._fileobject` (private): `_close`, `_rbuf`, `_rbufsize`, `_sock`, `_wbuf`, `_wbuf_len`, `_wbufsize` Inherited from `object`: `__class__`

Method Details | [hide private]

### _safe_call(self, is_reader, call, *args, **kwargs) | source code
    Wrap the given call with SSL error-trapping.

    is_reader: if False EOF errors will be raised. If True, EOF errors
        will return "" (to emulate normal sockets).

### recv(self, *args, **kwargs) | source code
Overrides: CP_fileobject.recv

### sendall(self, *args, **kwargs) | source code
Sendall for non-blocking sockets. Overrides: CP_fileobject.sendall (inherited documentation)

### send(self, *args, **kwargs) | source code
Overrides: CP_fileobject.send