~ruther/NosSmooth

ref: 16eed4b04ccdfcaf03771ccce3e6b01d541045c0 NosSmooth/Pcap/NosSmooth.Pcap/PcapNostaleOptions.cs -rw-r--r-- 1017 bytes
16eed4b0 — Rutherther feat(core): make raw packet implement IPacketResponder to make it usable with AddPacketResponder 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
//  PcapNostaleOptions.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace NosSmooth.Pcap;

/// <summary>
/// Options for <see cref="PcapNostaleManager"/> and <see cref="PcapNostaleClient"/>.
/// </summary>
public class PcapNostaleOptions
{
    /// <summary>
    /// Gets or sets the refresh interval of connections of NosTale processes in milliseconds. Default 10 milliseconds.
    /// </summary>
    public long ProcessRefreshInterval { get; set; } = 10;

    /// <summary>
    /// Gets or sets the time data from a connection should be kept in milliseconds. Default 10 seconds.
    /// </summary>
    public long CleanSniffedDataInterval { get; set; } = 10 * 1000;

    /// <summary>
    /// Gets or sets the time tcp connection should be forgotten in milliseconds. Default 10 minutes.
    /// </summary>
    public long ForgetConnectionInterval { get; set; } = 10 * 60 * 1000;
}