Exemplo n.º 1
0
 private DummySink(UsageEnvironment env, MediaSubsession subsession, string streamId) :
     base(env)
 {
     fSubsession    = subsession;
     fStreamId      = streamId;
     fReceiveBuffer = new string('\0', RECEIVE_BUFFER_SIZE);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initialize the Argon2 PasswordHasher with default performance and algorithm settings based upon the environment the hashing will be used in.
        /// You should perform your own profiling to determine what the parameters should be for your specific usage; however, this attempts to provide
        /// some reasonable defaults.
        /// <param name="environment">Whether the PasswordHasher will be used in a server or single-user setting</param>
        /// </summary>
        public PasswordHasher(UsageEnvironment environment)
        {
            switch (environment)
            {
                case UsageEnvironment.Server:
                    TimeCost = 3;
                    MemoryCost = 8192;
                    Parallelism = 1;
                    break;
                case UsageEnvironment.SingleUser:
                    TimeCost = 10;
                    MemoryCost = 131072;
                    Parallelism = 2;
                    break;
            }

            ArgonType = Argon2Type.Argon2i;
            HashLength = 32;
            StringEncoding = Encoding.UTF8;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initialize the Argon2 PasswordHasher with default performance and algorithm settings based upon the environment the hashing will be used in.
        /// You should perform your own profiling to determine what the parameters should be for your specific usage; however, this attempts to provide
        /// some reasonable defaults.
        /// <param name="environment">Whether the PasswordHasher will be used in a server or single-user setting</param>
        /// </summary>
        public PasswordHasher(UsageEnvironment environment)
        {
            switch (environment)
            {
            case UsageEnvironment.Server:
                TimeCost    = 3;
                MemoryCost  = 8192;
                Parallelism = 1;
                break;

            case UsageEnvironment.SingleUser:
                TimeCost    = 10;
                MemoryCost  = 131072;
                Parallelism = 2;
                break;
            }

            ArgonType      = Argon2Type.Argon2i;
            HashLength     = 32;
            StringEncoding = Encoding.UTF8;
        }
Exemplo n.º 4
0
 public OurRtspClient(UsageEnvironment env, string rtspURL, int verbosityLevel, string applicationName, ushort tunnelOverHTTPPortNum)
     : base(env, rtspURL, verbosityLevel, applicationName, tunnelOverHTTPPortNum)
 {
 }
Exemplo n.º 5
0
 public static MediaSink CreateNew(UsageEnvironment env, MediaSubsession subsession, string streamId)
 {
     return(new DummySink(env, subsession, streamId));
 }
Exemplo n.º 6
0
 protected DummySink(UsageEnvironment env)
     : base(env)
 {
 }
Exemplo n.º 7
0
 public OurRtspClient(UsageEnvironment env, string rtspURL, int verbosityLevel, string applicationName, ushort tunnelOverHTTPPortNum)
     : base(env, rtspURL, verbosityLevel, applicationName, tunnelOverHTTPPortNum)
 {
 }