{"id":19083597,"url":"https://github.com/dotpcap/packetnet-connections","last_synced_at":"2025-07-11T05:04:02.606Z","repository":{"id":37026341,"uuid":"174450872","full_name":"dotpcap/packetnet-connections","owner":"dotpcap","description":"Supplement to Packet.Net that adds connection tracking support","archived":false,"fork":false,"pushed_at":"2025-02-21T11:42:08.000Z","size":13003,"stargazers_count":46,"open_issues_count":4,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-24T05:52:45.130Z","etag":null,"topics":["c-sharp","cross-platform","network-analysis"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dotpcap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-03-08T01:55:22.000Z","updated_at":"2025-06-23T02:33:17.000Z","dependencies_parsed_at":"2023-11-01T01:31:08.211Z","dependency_job_id":"506168f2-75d2-49d5-9c21-02a89a099a9d","html_url":"https://github.com/dotpcap/packetnet-connections","commit_stats":{"total_commits":70,"total_committers":6,"mean_commits":"11.666666666666666","dds":0.5142857142857142,"last_synced_commit":"6459a6217040ce2d21dbdf0120d6094df8eded65"},"previous_names":["chmorgan/packetnet-connections"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dotpcap/packetnet-connections","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotpcap%2Fpacketnet-connections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotpcap%2Fpacketnet-connections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotpcap%2Fpacketnet-connections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotpcap%2Fpacketnet-connections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotpcap","download_url":"https://codeload.github.com/dotpcap/packetnet-connections/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotpcap%2Fpacketnet-connections/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264734573,"owners_count":23655695,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-sharp","cross-platform","network-analysis"],"created_at":"2024-11-09T02:48:05.727Z","updated_at":"2025-07-11T05:04:02.585Z","avatar_url":"https://github.com/dotpcap.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NuGet](https://img.shields.io/nuget/v/packetnet-connections.svg)](https://www.nuget.org/packages/packetnet-connections/)\n[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/h2j5eifuh3j5svjl/branch/master?svg=true)](https://ci.appveyor.com/project/chmorgan/packetnet-connections/branch/master)\n![.NET Core](https://github.com/chmorgan/packetnet-connections/workflows/.NET%20Core/badge.svg)\n\n# PacketDotNet.Connections\n\nA supplementary library to [Packet.Net](http://github.com/chmorgan/packetnet) that provides classes to track\nand follow connections.\n\nConnection following is supported for tcp connections but it should be straightfoward to add support for\nudp connections.\n\n# Background\n\nThis library was developed for a commercial product to work with [SharpPcap](http://github.com/chmorgan/sharppcap) and Packet.Net to enable\nthe processing of TCP data streams. Several people have asked about this kind of functionality in Packet.Net for some\ntime and I wanted to Open Source it so others could make use of and learn from its implementation. This library should\nbe a good foundation to build from and improve for people looking to implement connection oriented processing.\n\n# System diagram\n\n![PacketDotNet.Connections diagram](PacketDotNet.Connections.svg)\n\n# Licensing\n\nThe license is GPLv3. If you are interested in licensing for commercial use please contact me at chmorgan@gmail.com.\n\n# Examples\n\nSee the Examples folder for a few examples such as:\n\n## BandwidthMonitor\nTracks tcp connections and accumulates the data sent/received.\n\n## ConnectionsExample\nTracks tcp connections and shows when connections are created and shut down.\n![ConnectionExample gif animation](ConnectionExample.gif)\n\n## HttpMonitorExample\nDecodes http traffic sent through tcp connections and displays the http content.\nWith the almost universal use of https this example may not be as useful as it would have been a few years ago.\n\n# Unit tests\n\nLocated in the UnitTest directory. Written in xUnit as xUnit is bundled with .NET.\n\nBuild and run either through VisualStudio or on the command line from the output directory like:\n\n```\ndotnet vstest UnitTest.dll\n```\n\nOutput looks like:\n\n```\n$ dotnet vstest UnitTest.dll\nMicrosoft (R) Test Execution Command Line Tool Version 15.9.0\nCopyright (c) Microsoft Corporation.  All rights reserved.\n\nStarting test execution, please wait...\ntcpPacket.PayloadData.Length 0\nHandleConnectionManagerOnConnectionFound c [TcpConnection: HasTimedOut=False, Flow[0] [TcpFlow address 192.168.1.4, port 37427], Flow[1] [TcpFlow address 24.249.30.92, port 2222]]\nConnection found: 192.168.1.64:38734 \u003c-\u003e 157.166.224.26:80\n0 bytes in stream\nmeasurement: 192.168.1.64:38734 \u003c-\u003e 157.166.224.26:80 - [ConnectionTimes synTime '1299375314.196014s', synAckTime '1299375314.377115s', elapsed '00:00:00.1811010']\nConnection found: 192.168.1.64:43853 \u003c-\u003e 157.166.255.216:80\nmeasurement: 192.168.1.64:43853 \u003c-\u003e 157.166.255.216:80 - [ConnectionTimes synTime '1299375314.463864s', synAckTime '1299375314.680644s', elapsed '00:00:00.2167800']\nConnection found: 192.168.1.64:60904 \u003c-\u003e 157.166.255.19:80\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotpcap%2Fpacketnet-connections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotpcap%2Fpacketnet-connections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotpcap%2Fpacketnet-connections/lists"}