util

class cell.util.LinkSpecifier(relay, legacy=False)[source]

Bases: object

Note

tor-spec, Section 5.1.2

getBytes()[source]

Build and construct the raw byte string represented by this link specifier.

Returns:str raw byte string this link specifier represents
class cell.util.TLVTriple(addr)[source]

Bases: object

Note

tor-spec, Section 6.4

static parse(data, offset)[source]

Parse and extract TLVTriple fields from a byte string.

Parameters:
  • data (str) – byte string to parse
  • offset (int) – offset in str data where we should start reading
Returns:

TLVTriple

getBytes()[source]

Construct and return the raw byte string this TLVTriple represents.

Returns:str raw byte string this TLVTriple represents.

Previous topic

exceptions

Next topic

circuit

This Page