Browse Source

Rename Shadowsocks.Proxy -> Shadowsocks.ForwardProxy

tags/3.4.0
noisyfox 7 years ago
parent
commit
be3cc3f3a6
6 changed files with 17 additions and 17 deletions
  1. +5
    -5
      shadowsocks-csharp/Controller/Service/TCPRelay.cs
  2. +2
    -2
      shadowsocks-csharp/ForwardProxy/DirectConnect.cs
  3. +2
    -2
      shadowsocks-csharp/ForwardProxy/HttpProxy.cs
  4. +2
    -2
      shadowsocks-csharp/ForwardProxy/IForwardProxy.cs
  5. +2
    -2
      shadowsocks-csharp/ForwardProxy/Socks5Proxy.cs
  6. +4
    -4
      shadowsocks-csharp/shadowsocks-csharp.csproj

+ 5
- 5
shadowsocks-csharp/Controller/Service/TCPRelay.cs View File

@@ -7,8 +7,8 @@ using System.Timers;
using Shadowsocks.Controller.Strategy;
using Shadowsocks.Encryption;
using Shadowsocks.ForwardProxy;
using Shadowsocks.Model;
using Shadowsocks.Proxy;
using Shadowsocks.Util.Sockets;
namespace Shadowsocks.Controller
@@ -97,9 +97,9 @@ namespace Shadowsocks.Controller
{
class AsyncSession
{
public IProxy Remote { get; }
public IForwardProxy Remote { get; }
public AsyncSession(IProxy remote)
public AsyncSession(IForwardProxy remote)
{
Remote = remote;
}
@@ -109,7 +109,7 @@ namespace Shadowsocks.Controller
{
public T State { get; set; }
public AsyncSession(IProxy remote, T state) : base(remote)
public AsyncSession(IForwardProxy remote, T state) : base(remote)
{
State = state;
}
@@ -516,7 +516,7 @@ namespace Shadowsocks.Controller
CreateRemote();
// Setting up proxy
IProxy remote;
IForwardProxy remote;
EndPoint proxyEP;
if (_config.proxy.useProxy)
{


shadowsocks-csharp/Proxy/DirectConnect.cs → shadowsocks-csharp/ForwardProxy/DirectConnect.cs View File

@@ -4,9 +4,9 @@ using System.Net.Sockets;
using System.Threading;
using Shadowsocks.Util.Sockets;

namespace Shadowsocks.Proxy
namespace Shadowsocks.ForwardProxy
{
public class DirectConnect : IProxy
public class DirectConnect : IForwardProxy
{
private class FakeAsyncResult : IAsyncResult
{

shadowsocks-csharp/Proxy/HttpProxy.cs → shadowsocks-csharp/ForwardProxy/HttpProxy.cs View File

@@ -7,9 +7,9 @@ using System.Threading;
using Shadowsocks.Controller;
using Shadowsocks.Util.Sockets;

namespace Shadowsocks.Proxy
namespace Shadowsocks.ForwardProxy
{
public class HttpProxy : IProxy
public class HttpProxy : IForwardProxy
{
private class FakeAsyncResult : IAsyncResult
{

shadowsocks-csharp/Proxy/IProxy.cs → shadowsocks-csharp/ForwardProxy/IForwardProxy.cs View File

@@ -2,10 +2,10 @@
using System.Net;
using System.Net.Sockets;

namespace Shadowsocks.Proxy
namespace Shadowsocks.ForwardProxy
{

public interface IProxy
public interface IForwardProxy
{
EndPoint LocalEndPoint { get; }


shadowsocks-csharp/Proxy/Socks5Proxy.cs → shadowsocks-csharp/ForwardProxy/Socks5Proxy.cs View File

@@ -6,9 +6,9 @@ using System.Threading;
using Shadowsocks.Controller;
using Shadowsocks.Util.Sockets;

namespace Shadowsocks.Proxy
namespace Shadowsocks.ForwardProxy
{
public class Socks5Proxy : IProxy
public class Socks5Proxy : IForwardProxy
{
private class FakeAsyncResult : IAsyncResult
{

+ 4
- 4
shadowsocks-csharp/shadowsocks-csharp.csproj View File

@@ -148,9 +148,9 @@
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<Compile Include="Proxy\DirectConnect.cs" />
<Compile Include="Proxy\HttpProxy.cs" />
<Compile Include="Proxy\IProxy.cs" />
<Compile Include="ForwardProxy\DirectConnect.cs" />
<Compile Include="ForwardProxy\HttpProxy.cs" />
<Compile Include="ForwardProxy\IForwardProxy.cs" />
<Compile Include="Controller\Service\AvailabilityStatistics.cs" />
<Compile Include="Controller\Strategy\HighAvailabilityStrategy.cs" />
<Compile Include="Controller\Strategy\StatisticsStrategy.cs" />
@@ -185,7 +185,7 @@
<Compile Include="Controller\Strategy\BalancingStrategy.cs" />
<Compile Include="Controller\Strategy\StrategyManager.cs" />
<Compile Include="Controller\Strategy\IStrategy.cs" />
<Compile Include="Proxy\Socks5Proxy.cs" />
<Compile Include="ForwardProxy\Socks5Proxy.cs" />
<Compile Include="Settings.cs" />
<Compile Include="StringEx.cs" />
<Compile Include="Controller\System\Hotkeys\Hotkeys.cs" />


Loading…
Cancel
Save