Part of bzrlib.smart.protocol View In Hierarchy
Known subclasses: bzrlib.smart.protocol.SmartServerRequestProtocolTwo
Method | __init__ | Undocumented |
Method | accept_bytes | Take bytes, and advance the internal state machine appropriately. |
Method | next_read_size | Undocumented |
Method | _send_response | Send a smart server response down the output stream. |
Method | _write_protocol_version | Write any prefixes this protocol requires. |
Method | _write_success_or_failure_prefix | Write the protocol specific success/failure prefix. |
Inherited from SmartProtocolBase:
Method | _encode_bulk_data | Encode body as a bulk data chunk. |
Method | _serialise_offsets | Serialise a readv offset list. |
Parameters | bytes | must be a byte string |
Version one doesn't send protocol versions.
For SmartServerRequestProtocolOne this is omitted but we call is_successful to ensure that the response is valid.