SSL_fileobject

Faux file object attached to a socket object.


Attributes

a __slots__

['mode',
 'bufsize',
 'softspace',
 '_sock',
 '_rbufsize',
 '_wbufsize',
 '_rbuf',
 '_wbuf',
 '_close']

a bufsize

<member 'bufsize' of '_fileobject' objects>

a closed

True if the file is closed

a default_bufsize

8192

a mode

<member 'mode' of '_fileobject' objects>

a name

'<socket>'

a softspace

<member 'softspace' of '_fileobject' objects>

a ssl_retry

0.01

a ssl_timeout

3

Methods

f __init__(self, sock, mode='rb', bufsize=-1, close=False) ...

f __del__(self) ...

f __iter__(self) ...

f close(self, *args, **kwargs) ...

f flush(self, *args, **kwargs) ...

f read(self, *args, **kwargs) ...

f readline(self, *args, **kwargs) ...

f readlines(self, *args, **kwargs) ...

f write(self, *args, **kwargs) ...

f writelines(self, *args, **kwargs) ...

See the source for more information.