~ruther/NosSmooth

ref: b91870a525340f7604b92910f2d3dd2559930b53 NosSmooth/Pcap/NosSmooth.Pcap/TcpConnection.cs -rw-r--r-- 815 bytes
b91870a5 — Rutherther feat(pcap): try to guess packet is world packet if no encryption key is detected 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
//
//  TcpConnection.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.

using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;

namespace NosSmooth.Pcap;

/// <summary>
/// A tcp connection.
/// </summary>
/// <param name="LocalAddr">The local address.</param>
/// <param name="LocalPort">The local port.</param>
/// <param name="RemoteAddr">The remote address.</param>
/// <param name="RemotePort">The remote port.</param>
[SuppressMessage("StyleCop.CSharp.NamingRules", "SA1313:Parameter names should begin with lower-case letter", Justification = "Fix this.")]
public record struct TcpConnection
(
    long LocalAddr,
    int LocalPort,
    long RemoteAddr,
    int RemotePort
);
Do not follow this link