Bladeren bron

chore: update project structure

Bruce Wayne 5 maanden geleden
bovenliggende
commit
15cd5ebd9e
100 gewijzigde bestanden met toevoegingen van 72 en 89 verwijderingen
  1. 22 37
      .github/workflows/CI.yaml
  2. 39 41
      NatTypeTester.slnx
  3. 5 5
      README.md
  4. 0 0
      docs/img/RFC3489.png
  5. 0 0
      docs/img/RFC5780_4.2.png
  6. 0 0
      docs/img/RFC5780_4.3.png
  7. 0 0
      docs/img/RFC5780_4.4.png
  8. 0 0
      docs/img/RFC5780_4.5.png
  9. 0 0
      scripts/DotNetDllPathPatcher.ps1
  10. 2 2
      scripts/build.WinUI.ps1
  11. 4 4
      scripts/build.ps1
  12. 0 0
      src/NatTypeTester.Models/Config.cs
  13. 0 0
      src/NatTypeTester.Models/NatTypeTester.Models.csproj
  14. 0 0
      src/NatTypeTester.Models/NatTypeTesterModelsModule.cs
  15. 0 0
      src/NatTypeTester.ViewModels/MainWindowViewModel.cs
  16. 0 0
      src/NatTypeTester.ViewModels/NatTypeTester.ViewModels.csproj
  17. 0 0
      src/NatTypeTester.ViewModels/NatTypeTesterViewModelModule.cs
  18. 0 0
      src/NatTypeTester.ViewModels/RFC3489ViewModel.cs
  19. 0 0
      src/NatTypeTester.ViewModels/RFC5780ViewModel.cs
  20. 0 0
      src/NatTypeTester.ViewModels/SettingViewModel.cs
  21. 0 0
      src/NatTypeTester.ViewModels/ValueConverters/StringToIPEndpointTypeConverter.cs
  22. 0 0
      src/NatTypeTester.ViewModels/ViewModelBase.cs
  23. 0 0
      src/NatTypeTester.WinUI/App.xaml
  24. 0 0
      src/NatTypeTester.WinUI/App.xaml.cs
  25. 0 0
      src/NatTypeTester.WinUI/Assets/icon.ico
  26. 0 0
      src/NatTypeTester.WinUI/Extensions/ContentDialogExtensions.cs
  27. 0 0
      src/NatTypeTester.WinUI/Extensions/DIExtension.cs
  28. 0 0
      src/NatTypeTester.WinUI/MainWindow.xaml
  29. 0 0
      src/NatTypeTester.WinUI/MainWindow.xaml.cs
  30. 0 0
      src/NatTypeTester.WinUI/NatTypeTester.WinUI.csproj
  31. 0 0
      src/NatTypeTester.WinUI/NatTypeTesterModule.cs
  32. 0 0
      src/NatTypeTester.WinUI/Strings/en-US/Resources.resw
  33. 0 0
      src/NatTypeTester.WinUI/Strings/zh-CN/Resources.resw
  34. 0 0
      src/NatTypeTester.WinUI/Views/MainPage.xaml
  35. 0 0
      src/NatTypeTester.WinUI/Views/MainPage.xaml.cs
  36. 0 0
      src/NatTypeTester.WinUI/Views/RFC3489Page.xaml
  37. 0 0
      src/NatTypeTester.WinUI/Views/RFC3489Page.xaml.cs
  38. 0 0
      src/NatTypeTester.WinUI/Views/RFC5780Page.xaml
  39. 0 0
      src/NatTypeTester.WinUI/Views/RFC5780Page.xaml.cs
  40. 0 0
      src/NatTypeTester.WinUI/Views/ReactivePages.cs
  41. 0 0
      src/NatTypeTester.WinUI/Views/SettingPage.xaml
  42. 0 0
      src/NatTypeTester.WinUI/Views/SettingPage.xaml.cs
  43. 0 0
      src/NatTypeTester.WinUI/app.manifest
  44. 0 0
      src/NatTypeTester/App.xaml
  45. 0 0
      src/NatTypeTester/App.xaml.cs
  46. 0 0
      src/NatTypeTester/Dialogs/DisposableContentDialog.cs
  47. 0 0
      src/NatTypeTester/MainWindow.xaml
  48. 0 0
      src/NatTypeTester/MainWindow.xaml.cs
  49. 0 0
      src/NatTypeTester/NatTypeTester.csproj
  50. 0 0
      src/NatTypeTester/NatTypeTesterModule.cs
  51. 0 0
      src/NatTypeTester/Properties/DesignTimeResources.xaml
  52. 0 0
      src/NatTypeTester/Utils/Extensions.cs
  53. 0 0
      src/NatTypeTester/Views/RFC3489View.xaml
  54. 0 0
      src/NatTypeTester/Views/RFC3489View.xaml.cs
  55. 0 0
      src/NatTypeTester/Views/RFC5780View.xaml
  56. 0 0
      src/NatTypeTester/Views/RFC5780View.xaml.cs
  57. 0 0
      src/NatTypeTester/Views/SettingView.xaml
  58. 0 0
      src/NatTypeTester/Views/SettingView.xaml.cs
  59. 0 0
      src/NatTypeTester/app.manifest
  60. 0 0
      src/NatTypeTester/icon.ico
  61. 0 0
      src/STUN/Client/IStunClient.cs
  62. 0 0
      src/STUN/Client/IStunClient5389.cs
  63. 0 0
      src/STUN/Client/IUdpStunClient.cs
  64. 0 0
      src/STUN/Client/StunClient3489.cs
  65. 0 0
      src/STUN/Client/StunClient5389TCP.cs
  66. 0 0
      src/STUN/Client/StunClient5389UDP.cs
  67. 0 0
      src/STUN/Enums/AttributeType.cs
  68. 0 0
      src/STUN/Enums/BindingTestResult.cs
  69. 0 0
      src/STUN/Enums/Class.cs
  70. 0 0
      src/STUN/Enums/FilteringBehavior.cs
  71. 0 0
      src/STUN/Enums/IpFamily.cs
  72. 0 0
      src/STUN/Enums/MappingBehavior.cs
  73. 0 0
      src/STUN/Enums/Method.cs
  74. 0 0
      src/STUN/Enums/NatType.cs
  75. 0 0
      src/STUN/Enums/ProxyType.cs
  76. 0 0
      src/STUN/Enums/StunMessageType.cs
  77. 0 0
      src/STUN/Enums/TransportType.cs
  78. 0 0
      src/STUN/HostnameEndpoint.cs
  79. 0 0
      src/STUN/Messages/StunAttribute.cs
  80. 0 0
      src/STUN/Messages/StunAttributeValues/AddressStunAttributeValue.cs
  81. 0 0
      src/STUN/Messages/StunAttributeValues/ChangeRequestStunAttributeValue.cs
  82. 0 0
      src/STUN/Messages/StunAttributeValues/ChangedAddressStunAttributeValue.cs
  83. 0 0
      src/STUN/Messages/StunAttributeValues/ErrorCodeStunAttributeValue.cs
  84. 0 0
      src/STUN/Messages/StunAttributeValues/IStunAttributeValue.cs
  85. 0 0
      src/STUN/Messages/StunAttributeValues/MappedAddressStunAttributeValue.cs
  86. 0 0
      src/STUN/Messages/StunAttributeValues/OtherAddressStunAttributeValue.cs
  87. 0 0
      src/STUN/Messages/StunAttributeValues/ReflectedFromStunAttributeValue.cs
  88. 0 0
      src/STUN/Messages/StunAttributeValues/ResponseAddressStunAttributeValue.cs
  89. 0 0
      src/STUN/Messages/StunAttributeValues/SourceAddressStunAttributeValue.cs
  90. 0 0
      src/STUN/Messages/StunAttributeValues/UnknownStunAttributeValue.cs
  91. 0 0
      src/STUN/Messages/StunAttributeValues/UselessStunAttributeValue.cs
  92. 0 0
      src/STUN/Messages/StunAttributeValues/XorMappedAddressStunAttributeValue.cs
  93. 0 0
      src/STUN/Messages/StunMessage5389.cs
  94. 0 0
      src/STUN/Messages/StunResponse.cs
  95. 0 0
      src/STUN/Proxy/DirectTcpProxy.cs
  96. 0 0
      src/STUN/Proxy/ITcpProxy.cs
  97. 0 0
      src/STUN/Proxy/IUdpProxy.cs
  98. 0 0
      src/STUN/Proxy/NoneUdpProxy.cs
  99. 0 0
      src/STUN/Proxy/ProxyFactory.cs
  100. 0 0
      src/STUN/Proxy/Socks5TcpProxy.cs

+ 22 - 37
.github/workflows/CI.yaml

@@ -1,5 +1,5 @@
 name: CI
-on: 
+on:
   - push
   - pull_request
 env:
@@ -9,20 +9,17 @@ env:
 
 jobs:
   check_format:
+    name: Check format
     runs-on: ubuntu-latest
     steps:
-      - name: Setup .NET
-        uses: actions/setup-dotnet@v4
+      - uses: actions/checkout@v4
+      - uses: actions/setup-dotnet@v4
         with:
           dotnet-version: 9.0.x
-
-      - name: Checkout code
-        uses: actions/checkout@v4
-
-      - name: Run dotnet format check
-        run: dotnet format -v diag --verify-no-changes
+      - run: dotnet format -v diag --verify-no-changes
 
   test:
+    name: Run tests
     runs-on: ${{ matrix.os }}
     strategy:
       matrix:
@@ -32,54 +29,45 @@ jobs:
           - macos-latest
 
     steps:
-      - name: Checkout code
-        uses: actions/checkout@v4
-
-      - name: Setup .NET
-        uses: actions/setup-dotnet@v4
+      - uses: actions/checkout@v4
+      - uses: actions/setup-dotnet@v4
         with:
           dotnet-version: 9.0.x
-
-      - name: Run tests
-        working-directory: UnitTest
-        run: dotnet test -c Release
+      - run: dotnet test -c Release
 
   build:
     needs: [test, check_format]
     runs-on: windows-latest
     steps:
-      - name: Checkout code
-        uses: actions/checkout@v4
-
-      - name: Setup .NET
-        uses: actions/setup-dotnet@v4
+      - uses: actions/checkout@v4
+      - uses: actions/setup-dotnet@v4
         with:
           dotnet-version: 9.0.x
 
       - name: Build
         shell: pwsh
         run: |
-          .\build.ps1
-          .\build.WinUI.ps1 x64
-          .\build.WinUI.ps1 arm64
+          .\scripts\build.ps1
+          .\scripts\build.WinUI.ps1 x64
+          .\scripts\build.WinUI.ps1 arm64
 
       - name: Upload
         uses: actions/upload-artifact@v4
         with:
           name: ${{ env.ProjectName }}
-          path: ${{ env.ProjectName }}\bin\${{ env.Configuration }}\${{ env.NET_TFM }}\generic\publish\
+          path: src\${{ env.ProjectName }}\bin\${{ env.Configuration }}\${{ env.NET_TFM }}\generic\publish\
 
       - name: Upload WinUI x64
         uses: actions/upload-artifact@v4
         with:
           name: ${{ env.ProjectName }}.WinUI.x64
-          path: ${{ env.ProjectName }}.WinUI\bin\x64\${{ env.Configuration }}\${{ env.NET_TFM }}\win-x64\publish\
+          path: src\${{ env.ProjectName }}.WinUI\bin\x64\${{ env.Configuration }}\${{ env.NET_TFM }}\win-x64\publish\
 
       - name: Upload WinUI arm64
         uses: actions/upload-artifact@v4
         with:
           name: ${{ env.ProjectName }}.WinUI.arm64
-          path: ${{ env.ProjectName }}.WinUI\bin\arm64\${{ env.Configuration }}\${{ env.NET_TFM }}\win-arm64\publish\
+          path: src\${{ env.ProjectName }}.WinUI\bin\arm64\${{ env.Configuration }}\${{ env.NET_TFM }}\win-arm64\publish\
 
   nuget:
     needs: [test, check_format]
@@ -93,20 +81,17 @@ jobs:
           - STUN
 
     steps:
-      - name: Checkout code
-        uses: actions/checkout@v4
-
-      - name: Setup .NET
-        uses: actions/setup-dotnet@v4
+      - uses: actions/checkout@v4
+      - uses: actions/setup-dotnet@v4
         with:
           dotnet-version: 9.0.x
 
       - name: Build
-        working-directory: ${{ matrix.PackageName }}
-        run: dotnet build -c Release
+        working-directory: src/${{ matrix.PackageName }}
+        run: dotnet pack
 
       - name: Push nuget packages
-        working-directory: ${{ matrix.PackageName }}/bin/Release
+        working-directory: src/${{ matrix.PackageName }}/bin/Release
         run: |
           dotnet nuget push *.nupkg -s https://nuget.pkg.github.com/HMBSbige -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
           dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NuGetAPIKey }} --skip-duplicate

+ 39 - 41
NatTypeTester.slnx

@@ -7,50 +7,48 @@
   <Folder Name="/Solution Items/">
     <File Path=".editorconfig" />
     <File Path=".gitignore" />
-    <File Path="build.ps1" />
-    <File Path="build.WinUI.ps1" />
-    <File Path="Build\DotNetDllPathPatcher.ps1" />
     <File Path="LICENSE" />
     <File Path="NuGet.Config" />
     <File Path="README.md" />
     <File Path="Directory.Packages.props" />
+    <File Path="Directory.Build.props" />
+  </Folder>
+  <Folder Name="/src/">
+    <Project Path="src\NatTypeTester.Models\NatTypeTester.Models.csproj" Type="Classic C#">
+      <Configuration Solution="Debug|ARM64" Project="Debug|Any CPU" />
+      <Configuration Solution="Debug|x64" Project="Debug|Any CPU" />
+      <Configuration Solution="Release|ARM64" Project="Release|Any CPU" />
+      <Configuration Solution="Release|x64" Project="Release|Any CPU" />
+    </Project>
+    <Project Path="src\NatTypeTester.ViewModels\NatTypeTester.ViewModels.csproj" Type="Classic C#">
+      <Configuration Solution="Debug|ARM64" Project="Debug|Any CPU" />
+      <Configuration Solution="Debug|x64" Project="Debug|Any CPU" />
+      <Configuration Solution="Release|ARM64" Project="Release|Any CPU" />
+      <Configuration Solution="Release|x64" Project="Release|Any CPU" />
+    </Project>
+    <Project Path="src\NatTypeTester.WinUI\NatTypeTester.WinUI.csproj">
+      <Configuration Solution="Debug|Any CPU" Project="Debug|x64" />
+      <Configuration Solution="Release|Any CPU" Project="Release|x64" />
+    </Project>
+    <Project Path="src\NatTypeTester\NatTypeTester.csproj" Type="Classic C#">
+      <Configuration Solution="Debug|ARM64" Project="Debug|Any CPU" />
+      <Configuration Solution="Debug|x64" Project="Debug|Any CPU" />
+      <Configuration Solution="Release|ARM64" Project="Release|Any CPU" />
+      <Configuration Solution="Release|x64" Project="Release|Any CPU" />
+    </Project>
+    <Project Path="src\STUN\STUN.csproj" Type="Classic C#">
+      <Configuration Solution="Debug|ARM64" Project="Debug|Any CPU" />
+      <Configuration Solution="Debug|x64" Project="Debug|Any CPU" />
+      <Configuration Solution="Release|ARM64" Project="Release|Any CPU" />
+      <Configuration Solution="Release|x64" Project="Release|Any CPU" />
+    </Project>
+  </Folder>
+  <Folder Name="/tests/">
+    <Project Path="src\tests\UnitTest\UnitTest.csproj" Type="Classic C#">
+      <Configuration Solution="Debug|ARM64" Project="Debug|Any CPU" />
+      <Configuration Solution="Debug|x64" Project="Debug|Any CPU" />
+      <Configuration Solution="Release|ARM64" Project="Release|Any CPU" />
+      <Configuration Solution="Release|x64" Project="Release|Any CPU" />
+    </Project>
   </Folder>
-  <Project Path="NatTypeTester.Models\NatTypeTester.Models.csproj">
-    <Configuration Solution="Debug|ARM64" Project="Debug|Any CPU" />
-    <Configuration Solution="Debug|x64" Project="Debug|Any CPU" />
-    <Configuration Solution="Release|ARM64" Project="Release|Any CPU" />
-    <Configuration Solution="Release|x64" Project="Release|Any CPU" />
-  </Project>
-  <Project Path="NatTypeTester.ViewModels\NatTypeTester.ViewModels.csproj">
-    <Configuration Solution="Debug|ARM64" Project="Debug|Any CPU" />
-    <Configuration Solution="Debug|x64" Project="Debug|Any CPU" />
-    <Configuration Solution="Release|ARM64" Project="Release|Any CPU" />
-    <Configuration Solution="Release|x64" Project="Release|Any CPU" />
-  </Project>
-  <Project Path="NatTypeTester.WinUI\NatTypeTester.WinUI.csproj">
-    <Configuration Solution="Debug|Any CPU" Project="Debug|x64|Deploy" />
-    <Configuration Solution="Debug|ARM64" Project="Debug|ARM64|Deploy" />
-    <Configuration Solution="Debug|x64" Project="Debug|x64|Deploy" />
-    <Configuration Solution="Release|Any CPU" Project="Release|x64|Deploy" />
-    <Configuration Solution="Release|ARM64" Project="Release|ARM64|Deploy" />
-    <Configuration Solution="Release|x64" Project="Release|x64|Deploy" />
-  </Project>
-  <Project Path="NatTypeTester\NatTypeTester.csproj">
-    <Configuration Solution="Debug|ARM64" Project="Debug|Any CPU" />
-    <Configuration Solution="Debug|x64" Project="Debug|Any CPU" />
-    <Configuration Solution="Release|ARM64" Project="Release|Any CPU" />
-    <Configuration Solution="Release|x64" Project="Release|Any CPU" />
-  </Project>
-  <Project Path="STUN\STUN.csproj">
-    <Configuration Solution="Debug|ARM64" Project="Debug|Any CPU" />
-    <Configuration Solution="Debug|x64" Project="Debug|Any CPU" />
-    <Configuration Solution="Release|ARM64" Project="Release|Any CPU" />
-    <Configuration Solution="Release|x64" Project="Release|Any CPU" />
-  </Project>
-  <Project Path="UnitTest\UnitTest.csproj">
-    <Configuration Solution="Debug|ARM64" Project="Debug|Any CPU" />
-    <Configuration Solution="Debug|x64" Project="Debug|Any CPU" />
-    <Configuration Solution="Release|ARM64" Project="Release|Any CPU" />
-    <Configuration Solution="Release|x64" Project="Release|Any CPU" />
-  </Project>
 </Solution>

+ 5 - 5
README.md

@@ -25,7 +25,7 @@ Stun.Net | [![NuGet.org](https://img.shields.io/nuget/v/Stun.Net.svg?logo=nuget)
 ## RFC3489
 <details>
 
-![](pic/RFC3489.png)
+![](docs/img/RFC3489.png)
 </details>
 
 ## RFC5389
@@ -33,26 +33,26 @@ Stun.Net | [![NuGet.org](https://img.shields.io/nuget/v/Stun.Net.svg?logo=nuget)
 <details>
   <summary>Checking for UDP Connectivity with the STUN Server</summary>
 
-![](pic/RFC5780_4.2.png)
+![](docs/img/RFC5780_4.2.png)
 </details>
 
 ### Mapping Behavior
 <details>
   <summary>Determining NAT Mapping Behavior</summary>
 
-![](pic/RFC5780_4.3.png)
+![](docs/img/RFC5780_4.3.png)
 </details>
 
 ### Filtering Behavior
 <details>
   <summary>Determining NAT Filtering Behavior</summary>
 
-![](pic/RFC5780_4.4.png)
+![](docs/img/RFC5780_4.4.png)
 </details>
 
 ### Combining Tests
 <details>
 
-![](pic/RFC5780_4.5.png)
+![](docs/img/RFC5780_4.5.png)
 
 </details>

+ 0 - 0
pic/RFC3489.png → docs/img/RFC3489.png


+ 0 - 0
pic/RFC5780_4.2.png → docs/img/RFC5780_4.2.png


+ 0 - 0
pic/RFC5780_4.3.png → docs/img/RFC5780_4.3.png


+ 0 - 0
pic/RFC5780_4.4.png → docs/img/RFC5780_4.4.png


+ 0 - 0
pic/RFC5780_4.5.png → docs/img/RFC5780_4.5.png


+ 0 - 0
Build/DotNetDllPathPatcher.ps1 → scripts/DotNetDllPathPatcher.ps1


+ 2 - 2
build.WinUI.ps1 → scripts/build.WinUI.ps1

@@ -6,12 +6,12 @@ dotnet --info
 $proj = 'NatTypeTester.WinUI'
 $net_tfm = 'net8.0-windows10.0.22621.0'
 $configuration = 'Release'
-$proj_path = "$PSScriptRoot\$proj\$proj.csproj"
+$proj_path = "src\$proj\$proj.csproj"
 
 $rid = "win-$platform"
 Write-Host "Building $rid"
 
-$publishDir = "$PSScriptRoot\$proj\bin\$platform\$configuration\$net_tfm\$rid\publish"
+$publishDir = "src\$proj\bin\$platform\$configuration\$net_tfm\$rid\publish"
 
 Remove-Item $publishDir -Recurse -Force -Confirm:$false -ErrorAction Ignore
 

+ 4 - 4
build.ps1 → scripts/build.ps1

@@ -6,8 +6,8 @@ $proj = 'NatTypeTester'
 $exe = "$proj.exe"
 $net_tfm = 'net8.0-windows10.0.22621.0'
 $configuration = 'Release'
-$output_dir = "$PSScriptRoot\$proj\bin\$configuration"
-$proj_path = "$PSScriptRoot\$proj\$proj.csproj"
+$output_dir = "src\$proj\bin\$configuration"
+$proj_path = "src\$proj\$proj.csproj"
 $generic_outdir = "$output_dir\$net_tfm\generic"
 
 function Build-Generic {
@@ -21,7 +21,7 @@ function Build-Generic {
     dotnet publish -c $configuration -f $net_tfm $proj_path -o $publishDir
     if ($LASTEXITCODE) { exit $LASTEXITCODE }
 
-    & "$PSScriptRoot\Build\DotNetDllPathPatcher.ps1" "$publishDir\$exe" bin
+    & "$PSScriptRoot\DotNetDllPathPatcher.ps1" "$publishDir\$exe" bin
     if ($LASTEXITCODE) { exit $LASTEXITCODE }
 
     Remove-Item "$publishDir\$exe"
@@ -41,7 +41,7 @@ function Build {
     dotnet publish -c $configuration -f $net_tfm -r $rid --no-self-contained true $proj_path
     if ($LASTEXITCODE) { exit $LASTEXITCODE }
 
-    & "$PSScriptRoot\Build\DotNetDllPathPatcher.ps1" "$publishDir\$exe" bin
+    & "$PSScriptRoot\DotNetDllPathPatcher.ps1" "$publishDir\$exe" bin
     if ($LASTEXITCODE) { exit $LASTEXITCODE }
 
     Move-Item "$publishDir\$exe" "$generic_outdir\publish\$proj-$arch.exe"

+ 0 - 0
NatTypeTester.Models/Config.cs → src/NatTypeTester.Models/Config.cs


+ 0 - 0
NatTypeTester.Models/NatTypeTester.Models.csproj → src/NatTypeTester.Models/NatTypeTester.Models.csproj


+ 0 - 0
NatTypeTester.Models/NatTypeTesterModelsModule.cs → src/NatTypeTester.Models/NatTypeTesterModelsModule.cs


+ 0 - 0
NatTypeTester.ViewModels/MainWindowViewModel.cs → src/NatTypeTester.ViewModels/MainWindowViewModel.cs


+ 0 - 0
NatTypeTester.ViewModels/NatTypeTester.ViewModels.csproj → src/NatTypeTester.ViewModels/NatTypeTester.ViewModels.csproj


+ 0 - 0
NatTypeTester.ViewModels/NatTypeTesterViewModelModule.cs → src/NatTypeTester.ViewModels/NatTypeTesterViewModelModule.cs


+ 0 - 0
NatTypeTester.ViewModels/RFC3489ViewModel.cs → src/NatTypeTester.ViewModels/RFC3489ViewModel.cs


+ 0 - 0
NatTypeTester.ViewModels/RFC5780ViewModel.cs → src/NatTypeTester.ViewModels/RFC5780ViewModel.cs


+ 0 - 0
NatTypeTester.ViewModels/SettingViewModel.cs → src/NatTypeTester.ViewModels/SettingViewModel.cs


+ 0 - 0
NatTypeTester.ViewModels/ValueConverters/StringToIPEndpointTypeConverter.cs → src/NatTypeTester.ViewModels/ValueConverters/StringToIPEndpointTypeConverter.cs


+ 0 - 0
NatTypeTester.ViewModels/ViewModelBase.cs → src/NatTypeTester.ViewModels/ViewModelBase.cs


+ 0 - 0
NatTypeTester.WinUI/App.xaml → src/NatTypeTester.WinUI/App.xaml


+ 0 - 0
NatTypeTester.WinUI/App.xaml.cs → src/NatTypeTester.WinUI/App.xaml.cs


+ 0 - 0
NatTypeTester.WinUI/Assets/icon.ico → src/NatTypeTester.WinUI/Assets/icon.ico


+ 0 - 0
NatTypeTester.WinUI/Extensions/ContentDialogExtensions.cs → src/NatTypeTester.WinUI/Extensions/ContentDialogExtensions.cs


+ 0 - 0
NatTypeTester.WinUI/Extensions/DIExtension.cs → src/NatTypeTester.WinUI/Extensions/DIExtension.cs


+ 0 - 0
NatTypeTester.WinUI/MainWindow.xaml → src/NatTypeTester.WinUI/MainWindow.xaml


+ 0 - 0
NatTypeTester.WinUI/MainWindow.xaml.cs → src/NatTypeTester.WinUI/MainWindow.xaml.cs


+ 0 - 0
NatTypeTester.WinUI/NatTypeTester.WinUI.csproj → src/NatTypeTester.WinUI/NatTypeTester.WinUI.csproj


+ 0 - 0
NatTypeTester.WinUI/NatTypeTesterModule.cs → src/NatTypeTester.WinUI/NatTypeTesterModule.cs


+ 0 - 0
NatTypeTester.WinUI/Strings/en-US/Resources.resw → src/NatTypeTester.WinUI/Strings/en-US/Resources.resw


+ 0 - 0
NatTypeTester.WinUI/Strings/zh-CN/Resources.resw → src/NatTypeTester.WinUI/Strings/zh-CN/Resources.resw


+ 0 - 0
NatTypeTester.WinUI/Views/MainPage.xaml → src/NatTypeTester.WinUI/Views/MainPage.xaml


+ 0 - 0
NatTypeTester.WinUI/Views/MainPage.xaml.cs → src/NatTypeTester.WinUI/Views/MainPage.xaml.cs


+ 0 - 0
NatTypeTester.WinUI/Views/RFC3489Page.xaml → src/NatTypeTester.WinUI/Views/RFC3489Page.xaml


+ 0 - 0
NatTypeTester.WinUI/Views/RFC3489Page.xaml.cs → src/NatTypeTester.WinUI/Views/RFC3489Page.xaml.cs


+ 0 - 0
NatTypeTester.WinUI/Views/RFC5780Page.xaml → src/NatTypeTester.WinUI/Views/RFC5780Page.xaml


+ 0 - 0
NatTypeTester.WinUI/Views/RFC5780Page.xaml.cs → src/NatTypeTester.WinUI/Views/RFC5780Page.xaml.cs


+ 0 - 0
NatTypeTester.WinUI/Views/ReactivePages.cs → src/NatTypeTester.WinUI/Views/ReactivePages.cs


+ 0 - 0
NatTypeTester.WinUI/Views/SettingPage.xaml → src/NatTypeTester.WinUI/Views/SettingPage.xaml


+ 0 - 0
NatTypeTester.WinUI/Views/SettingPage.xaml.cs → src/NatTypeTester.WinUI/Views/SettingPage.xaml.cs


+ 0 - 0
NatTypeTester.WinUI/app.manifest → src/NatTypeTester.WinUI/app.manifest


+ 0 - 0
NatTypeTester/App.xaml → src/NatTypeTester/App.xaml


+ 0 - 0
NatTypeTester/App.xaml.cs → src/NatTypeTester/App.xaml.cs


+ 0 - 0
NatTypeTester/Dialogs/DisposableContentDialog.cs → src/NatTypeTester/Dialogs/DisposableContentDialog.cs


+ 0 - 0
NatTypeTester/MainWindow.xaml → src/NatTypeTester/MainWindow.xaml


+ 0 - 0
NatTypeTester/MainWindow.xaml.cs → src/NatTypeTester/MainWindow.xaml.cs


+ 0 - 0
NatTypeTester/NatTypeTester.csproj → src/NatTypeTester/NatTypeTester.csproj


+ 0 - 0
NatTypeTester/NatTypeTesterModule.cs → src/NatTypeTester/NatTypeTesterModule.cs


+ 0 - 0
NatTypeTester/Properties/DesignTimeResources.xaml → src/NatTypeTester/Properties/DesignTimeResources.xaml


+ 0 - 0
NatTypeTester/Utils/Extensions.cs → src/NatTypeTester/Utils/Extensions.cs


+ 0 - 0
NatTypeTester/Views/RFC3489View.xaml → src/NatTypeTester/Views/RFC3489View.xaml


+ 0 - 0
NatTypeTester/Views/RFC3489View.xaml.cs → src/NatTypeTester/Views/RFC3489View.xaml.cs


+ 0 - 0
NatTypeTester/Views/RFC5780View.xaml → src/NatTypeTester/Views/RFC5780View.xaml


+ 0 - 0
NatTypeTester/Views/RFC5780View.xaml.cs → src/NatTypeTester/Views/RFC5780View.xaml.cs


+ 0 - 0
NatTypeTester/Views/SettingView.xaml → src/NatTypeTester/Views/SettingView.xaml


+ 0 - 0
NatTypeTester/Views/SettingView.xaml.cs → src/NatTypeTester/Views/SettingView.xaml.cs


+ 0 - 0
NatTypeTester/app.manifest → src/NatTypeTester/app.manifest


+ 0 - 0
NatTypeTester/icon.ico → src/NatTypeTester/icon.ico


+ 0 - 0
STUN/Client/IStunClient.cs → src/STUN/Client/IStunClient.cs


+ 0 - 0
STUN/Client/IStunClient5389.cs → src/STUN/Client/IStunClient5389.cs


+ 0 - 0
STUN/Client/IUdpStunClient.cs → src/STUN/Client/IUdpStunClient.cs


+ 0 - 0
STUN/Client/StunClient3489.cs → src/STUN/Client/StunClient3489.cs


+ 0 - 0
STUN/Client/StunClient5389TCP.cs → src/STUN/Client/StunClient5389TCP.cs


+ 0 - 0
STUN/Client/StunClient5389UDP.cs → src/STUN/Client/StunClient5389UDP.cs


+ 0 - 0
STUN/Enums/AttributeType.cs → src/STUN/Enums/AttributeType.cs


+ 0 - 0
STUN/Enums/BindingTestResult.cs → src/STUN/Enums/BindingTestResult.cs


+ 0 - 0
STUN/Enums/Class.cs → src/STUN/Enums/Class.cs


+ 0 - 0
STUN/Enums/FilteringBehavior.cs → src/STUN/Enums/FilteringBehavior.cs


+ 0 - 0
STUN/Enums/IpFamily.cs → src/STUN/Enums/IpFamily.cs


+ 0 - 0
STUN/Enums/MappingBehavior.cs → src/STUN/Enums/MappingBehavior.cs


+ 0 - 0
STUN/Enums/Method.cs → src/STUN/Enums/Method.cs


+ 0 - 0
STUN/Enums/NatType.cs → src/STUN/Enums/NatType.cs


+ 0 - 0
STUN/Enums/ProxyType.cs → src/STUN/Enums/ProxyType.cs


+ 0 - 0
STUN/Enums/StunMessageType.cs → src/STUN/Enums/StunMessageType.cs


+ 0 - 0
STUN/Enums/TransportType.cs → src/STUN/Enums/TransportType.cs


+ 0 - 0
STUN/HostnameEndpoint.cs → src/STUN/HostnameEndpoint.cs


+ 0 - 0
STUN/Messages/StunAttribute.cs → src/STUN/Messages/StunAttribute.cs


+ 0 - 0
STUN/Messages/StunAttributeValues/AddressStunAttributeValue.cs → src/STUN/Messages/StunAttributeValues/AddressStunAttributeValue.cs


+ 0 - 0
STUN/Messages/StunAttributeValues/ChangeRequestStunAttributeValue.cs → src/STUN/Messages/StunAttributeValues/ChangeRequestStunAttributeValue.cs


+ 0 - 0
STUN/Messages/StunAttributeValues/ChangedAddressStunAttributeValue.cs → src/STUN/Messages/StunAttributeValues/ChangedAddressStunAttributeValue.cs


+ 0 - 0
STUN/Messages/StunAttributeValues/ErrorCodeStunAttributeValue.cs → src/STUN/Messages/StunAttributeValues/ErrorCodeStunAttributeValue.cs


+ 0 - 0
STUN/Messages/StunAttributeValues/IStunAttributeValue.cs → src/STUN/Messages/StunAttributeValues/IStunAttributeValue.cs


+ 0 - 0
STUN/Messages/StunAttributeValues/MappedAddressStunAttributeValue.cs → src/STUN/Messages/StunAttributeValues/MappedAddressStunAttributeValue.cs


+ 0 - 0
STUN/Messages/StunAttributeValues/OtherAddressStunAttributeValue.cs → src/STUN/Messages/StunAttributeValues/OtherAddressStunAttributeValue.cs


+ 0 - 0
STUN/Messages/StunAttributeValues/ReflectedFromStunAttributeValue.cs → src/STUN/Messages/StunAttributeValues/ReflectedFromStunAttributeValue.cs


+ 0 - 0
STUN/Messages/StunAttributeValues/ResponseAddressStunAttributeValue.cs → src/STUN/Messages/StunAttributeValues/ResponseAddressStunAttributeValue.cs


+ 0 - 0
STUN/Messages/StunAttributeValues/SourceAddressStunAttributeValue.cs → src/STUN/Messages/StunAttributeValues/SourceAddressStunAttributeValue.cs


+ 0 - 0
STUN/Messages/StunAttributeValues/UnknownStunAttributeValue.cs → src/STUN/Messages/StunAttributeValues/UnknownStunAttributeValue.cs


+ 0 - 0
STUN/Messages/StunAttributeValues/UselessStunAttributeValue.cs → src/STUN/Messages/StunAttributeValues/UselessStunAttributeValue.cs


+ 0 - 0
STUN/Messages/StunAttributeValues/XorMappedAddressStunAttributeValue.cs → src/STUN/Messages/StunAttributeValues/XorMappedAddressStunAttributeValue.cs


+ 0 - 0
STUN/Messages/StunMessage5389.cs → src/STUN/Messages/StunMessage5389.cs


+ 0 - 0
STUN/Messages/StunResponse.cs → src/STUN/Messages/StunResponse.cs


+ 0 - 0
STUN/Proxy/DirectTcpProxy.cs → src/STUN/Proxy/DirectTcpProxy.cs


+ 0 - 0
STUN/Proxy/ITcpProxy.cs → src/STUN/Proxy/ITcpProxy.cs


+ 0 - 0
STUN/Proxy/IUdpProxy.cs → src/STUN/Proxy/IUdpProxy.cs


+ 0 - 0
STUN/Proxy/NoneUdpProxy.cs → src/STUN/Proxy/NoneUdpProxy.cs


+ 0 - 0
STUN/Proxy/ProxyFactory.cs → src/STUN/Proxy/ProxyFactory.cs


+ 0 - 0
STUN/Proxy/Socks5TcpProxy.cs → src/STUN/Proxy/Socks5TcpProxy.cs


Some files were not shown because too many files changed in this diff