Details
A V3FSM steps through the Link Protocol Version 3 connection handshake. At each step, a V3FSM expects to receive a certain type of cell. Either this cell is received, processed, and (optionally) a response cell is returned, or an exception is raised and the associated Connection object is destroyed.
Bases: object
Verify the current connection supports a V3 handshake.
Note
See tor-spec, Section 2 for details.
Returns: | bool True if at least one of the conditions necessary for V3 support is True for this connection, False otherwise |
---|
Receive and incoming cell and hand off to a processing function based on the current fsm state.
Parameters: | cell (cell) – incoming cell to process |
---|---|
Returns: | a cell to write to this connection’s transport as a response, or None if no response is required |