cheroot.makefile module

Socket file object.

class cheroot.makefile.BufferedWriter(raw, buffer_size=8192)

Bases: _pyio.BufferedWriter

Faux file object attached to a socket object.

write(b)

Write bytes to buffer.

cheroot.makefile.MakeFile(sock, mode='r', bufsize=8192)

File object attached to a socket object.

class cheroot.makefile.MakeFile_PY2(*args, **kwargs)

Bases: object

Faux file object attached to a socket object.

flush()

Write all data from buffer to socket and reset write buffer.

read(size=-1)

Read data from the socket to buffer.

readline(size=-1)

Read line from the socket to buffer.

recv(size)

Receive message of a size from the socket.

send(data)

Send some part of message to the socket.

write(data)

Sendall for non-blocking sockets.

cheroot.makefile.MakeFile_PY3(sock, mode='r', bufsize=8192)

File object attached to a socket object.

Indices and tables