[][src]Module torut::control

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

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

AuthenticatedConn

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

Conn

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

TorPreAuthInfo

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

UnauthenticatedConn

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

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

AuthenticatedConnError describes subset of ConnErrors returned by AuthenticatedConn

ConnError

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

TorAuthData

TorAuthData contains all data required to authenticate single UnauthenticatedConn

TorAuthMethod

TorAuthMethod describes method which tor accepts as authentication method

TorErrorKind
TorSignal

TorSignal describes tor's SIGNAL command argument

UnauthenticatedConnError

UnauthenticatedConnError describes subset of ConnErrors returned by UnauthenticatedConn

Constants

COOKIE_LENGTH

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