using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; namespace Tor { /// /// An enumerator containing the different reasons for a ORStatus.Closed or ORStatus.Failed state. /// public enum ORReason { /// /// The reason was not provided or could not be determined. /// [Description(null)] None, /// /// The OR connection has shut down cleanly. /// [Description("DONE")] Done, /// /// The OR connection received an ECONNREFUSED when connecting to the target OR. /// [Description("CONNECTREFUSED")] ConnectRefused, /// /// The OR connection connected to the OR, but the identity was not what was expected. /// [Description("IDENTITY")] Identity, /// /// The OR connection received an ECONNRESET or similar IO error from OR. /// [Description("CONNECTRESET")] ConnectReset, /// /// The OR connection received an ETIMEOUT or similar IO eerror from the OR, or the connection /// has been terminated for being open for too long. /// [Description("TIMEOUT")] Timeout, /// /// The OR connection received an ENOTCONN, ENETUNREACH, ENETDOWN, EHOSTUNREACH or /// similar error while connecting to the OR. /// [Description("NOROUTE")] NoRoute, /// /// The OR connection received a different IO error. /// [Description("IOERROR")] IOError, /// /// The OR connection does not have enough system resources to connect to the OR. /// [Description("RESOURCELIMIT")] ResourceLimit, /// /// No pluggable transport was available. /// [Description("PT_MISSING")] PTMissing, /// /// The OR connection closed for some other reason. /// [Description("MISC")] Misc } }