class documentation

class ReceivableProtocol(Protocol):

View In Hierarchy

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
Instance Variable _rbuf Undocumented
Instance Variable _rbufsize Undocumented
Instance Variable _recv Undocumented

Inherited from Protocol:

Method __enter__ Undocumented
Method __exit__ Undocumented
Method close Undocumented
Method eof Test whether the protocol stream has reached EOF.
Method read_cmd Read a command and some arguments from the git client
Method read_pkt_line Reads a pkt-line from the remote git process.
Method read_pkt_seq Read a sequence of pkt-lines from the remote git process.
Method send_cmd Send a command and some arguments to a git server.
Method unread_pkt_line Unread a single line of data into the readahead buffer.
Method write_pkt_line Sends a pkt-line to the remote git process.
Method write_sideband Write multiplexed data to the sideband.
Instance Variable report_activity Undocumented
Instance Variable write Undocumented
Instance Variable _close Undocumented
Instance Variable _readahead Undocumented
def __init__(self, recv, write, close=None, report_activity=None, rbufsize=_RBUFSIZE):

Undocumented

def read(self, size):

Undocumented

def recv(self, size):

Undocumented

_rbuf =

Undocumented

_rbufsize =

Undocumented

_recv =

Undocumented