Variant of Protocol that allows reading up to a size without blocking.

This class has a recv() method that behaves like socket.recv() in addition to a read() method.

If you want to read n bytes from the wire and block until exactly n bytes (or EOF) are read, use read(n). If you want to read at most n bytes from the wire but don't care if you get less, use recv(n). Note that recv(n) will still block until at least one byte is read.

Method __init__ Undocumented
Method read Undocumented
Method recv Undocumented

Inherited from Protocol:

Method close Undocumented
Method __enter__ Undocumented
Method __exit__ Undocumented
Method read_pkt_line Reads a pkt-line from the remote git process.
Method eof Test whether the protocol stream has reached EOF.
Method unread_pkt_line Unread a single line of data into the readahead buffer.
Method read_pkt_seq Read a sequence of pkt-lines from the remote git process.
Method write_pkt_line Sends a pkt-line to the remote git process.
Method write_file Return a writable file-like object for this protocol.
Method write_sideband Write multiplexed data to the sideband.
Method send_cmd Send a command and some arguments to a git server.
Method read_cmd Read a command and some arguments from the git client
def __init__(self, recv, write, close=None, report_activity=None, rbufsize=_RBUFSIZE):
Undocumented
def read(self, size):
Undocumented
def recv(self, size):
Undocumented
API Documentation for Dulwich, generated by pydoctor at 2018-11-17 19:05:54.