tlslite.bufferedsocket module
Wrapper around the socket.socket interface that provides buffering
- class tlslite.bufferedsocket.BufferedSocket(socket)[source]
Bases:
object
Socket that will buffer reads and writes to a real socket object
When buffer_writes is enabled, writes won’t be passed to the real socket until flush() is called.
Not multithread safe.
- Variables:
buffer_writes (boolean) – whether to buffer data writes, False by default
- getpeername()[source]
Return the remote address to which the socket is connected
(socket emulation)