Bases: oppy.cell.fixedlen.FixedLenCell
A container class for representing relay cells.
Note
All Relay cells are fixed-length (length determined by Link Protocol version in use).
Construct and return the byte string represented by this cell.
Parameters: | trimmed (bool) – If True, return the non-padded payload. Otherwise pad the payload with null bytes to the fixed-size length in use according to the Link Protocol version. |
---|---|
Returns: | str byte string represented by this cell |
Return a two-tuple indicating the (start,end) indices of this cell’s relay header.
Returns: | tuple, int (start, end) indices of this cell’s relay header |
---|
Return a two-tuple indicating the (start,end) indices of this cell’s relay header.
Returns: | tuple, int (start, end) indices of this cell’s relay payload |
---|
Bases: cell.relay.RelayCell
Note
Not Implemented
Bases: cell.relay.RelayCell
Note
tor-spec, Section 6.2
Build and return a RelayBegin cell, filling in default values when possible.
Automatically create a default FixedLenCell.Header and RelayCell.RelayHeader.
Parameters: |
|
---|---|
Returns: |
Bases: cell.relay.RelayCell
Note
tor-spec, Section 6.2
Bases: cell.relay.RelayCell
Note
tor-spec, Section 6.2
Construct and return a RelayData cell, using default values where possible.
Create a FixedLenCell.Header and a RelayCell.RelayHeader.
Parameters: |
|
---|
Bases: cell.relay.RelayCell
Note
tor-spec, Section 6.2
Bases: cell.relay.RelayCell
Note
tor-spec, Section 6.3
Construct and return a RelayEnd cell, using default values where possible.
Create a FixedLenCell.Header and a RelayCell.RelayHeader.
Parameters: |
|
---|---|
Returns: | RelayEndCell |
Bases: cell.relay.RelayCell
Note
tor-spec, Section 5.1.2
Construct and return a RelayExtend2Cell, using default values where possible.
Create a FixedLenCell.Header and a RelayCell.RelayHeader for use in this cell.
Note
oppy currently only supports the NTor handshake and will reject unrecognized htype’s and hlen’s.
Parameters: |
|
---|---|
Returns: | RelayExtend2Cell |
Bases: cell.relay.RelayCell
Note
tor-spec, Section 5.1, 5.1.2
Bases: cell.relay.RelayCell
Note
Not Implemented
Bases: cell.relay.RelayCell
Note
Not Implemented
Bases: cell.relay.RelayCell
Note
Not Implemented
Bases: cell.relay.RelayCell
Note
Not Implemented
Bases: cell.relay.RelayCell
Note
tor-spec, Section 7.3, 7.4
Construct and return a RelaySendMeCell, using default values where possible.
Create a FixedLenCell.Header and a RelayCell.RelayHeader for use in this cell.
Parameters: |
|
---|---|
Returns: | RelaySendMeCell |
Bases: cell.relay.RelayCell
Note
tor-spec, Section 5.4
Bases: cell.relay.RelayCell
Note
Not Implemented