Module torut::control[][src]

Expand description

Control module implements all the utilities required to talk to tor instance and to give it some orders or get some info form it.

Structs

AsyncEvent is able to contain all info about async event which has been received from tor process.

AuthenticatedConn represents connection to TorCP after it has been authenticated so one may perform various operations on it.

Conn wraps any AsyncRead + AsyncWrite stream and implements parsing responses from tor and sending data to it.

TorPreAuthInfo contains info which can be received from tor process before authentication

UnauthenticatedConn represents connection to torCP which is not authenticated yet and for this reason only limited amount of operations may be performed on it.

Enums

AsyncEventKind right now torCP implements some limited amount of kinds of events AsyncEventKind represents these kinds which are known at the moment of writing this code.

AuthenticatedConnError describes subset of ConnErrors returned by AuthenticatedConn

ConnError is able to wrap any error that a connection may return

TorAuthData contains all data required to authenticate single UnauthenticatedConn

TorAuthMethod describes method which tor accepts as authentication method

TorSignal describes tor’s SIGNAL command argument

UnauthenticatedConnError describes subset of ConnErrors returned by UnauthenticatedConn

Constants

Length of tor cookie in bytes. Tor cookies have fixed length