From 302128623bf84abd788dcebdf74135261115a220 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sat, 11 Feb 2023 18:13:39 +0100 Subject: [PATCH] docs(pcap): add documentation to pcap records --- Pcap/NosSmooth.Pcap/ConnectionData.cs | 9 +++++++++ Pcap/NosSmooth.Pcap/TcpConnection.cs | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/Pcap/NosSmooth.Pcap/ConnectionData.cs b/Pcap/NosSmooth.Pcap/ConnectionData.cs index 1a81c76..b5de4d4 100644 --- a/Pcap/NosSmooth.Pcap/ConnectionData.cs +++ b/Pcap/NosSmooth.Pcap/ConnectionData.cs @@ -8,6 +8,15 @@ using System.Net; namespace NosSmooth.Pcap; +/// +/// Data from a tcp connection containing first few sniffed packets. +/// +/// The packets source address. +/// The packets source port. +/// The packets destination address. +/// The packets destination port. +/// The sniffed data. +/// The time first data were observed at. public record ConnectionData ( IPAddress SourceAddress, diff --git a/Pcap/NosSmooth.Pcap/TcpConnection.cs b/Pcap/NosSmooth.Pcap/TcpConnection.cs index 1f3414b..048dbf1 100644 --- a/Pcap/NosSmooth.Pcap/TcpConnection.cs +++ b/Pcap/NosSmooth.Pcap/TcpConnection.cs @@ -9,6 +9,13 @@ using System.Diagnostics.CodeAnalysis; namespace NosSmooth.Pcap; +/// +/// A tcp connection. +/// +/// The local address. +/// The local port. +/// The remote address. +/// The remote port. [SuppressMessage("StyleCop.CSharp.NamingRules", "SA1313:Parameter names should begin with lower-case letter", Justification = "Fix this.")] public record struct TcpConnection ( -- 2.49.0