using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; namespace Tor { /// /// An enumerator containing the different purposes for a stream, which is provided when extended events are enabled. /// public enum StreamPurpose { /// /// A purpose was not provided. /// [Description(null)] None, /// /// The stream was generated internally for fetching directory information. /// [Description("DIR_FETCH")] DirectoryFetch, /// /// The stream was generated internally for uploading information to a directory authority. /// [Description("DIR_READ")] DirectoryRead, /// /// The stream is a user-initiated DNS request. /// [Description("DNS_REQUEST")] DNSRequest, /// /// The stream is used explicitly for testing whether our hosted directory port is accessible. /// [Description("DIRPORT_TEST")] DirectoryPortTest, /// /// The stream is likely handling a user request. This could also be an internal stream, and none of the other /// purposes match the real purpose of the stream. /// [Description("USER")] User, } }