@@ -4,7 +4,7 @@ using System.IO; | |||||
using System.IO.Compression; | using System.IO.Compression; | ||||
using System.Text; | using System.Text; | ||||
namespace shadowsocks_csharp.Controller | |||||
namespace shadowsocks.Controller | |||||
{ | { | ||||
public class FileManager | public class FileManager | ||||
{ | { | ||||
@@ -3,10 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using System.Net.Sockets; | using System.Net.Sockets; | ||||
using System.Net; | using System.Net; | ||||
using shadowsocks_csharp.Encrypt; | |||||
using shadowsocks_csharp.Model; | |||||
using shadowsocks.Encrypt; | |||||
using shadowsocks.Model; | |||||
namespace shadowsocks_csharp.Controller | |||||
namespace shadowsocks.Controller | |||||
{ | { | ||||
class Local | class Local | ||||
@@ -1,4 +1,4 @@ | |||||
using shadowsocks_csharp.Properties; | |||||
using shadowsocks.Properties; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Diagnostics; | using System.Diagnostics; | ||||
@@ -8,7 +8,7 @@ using System.Net; | |||||
using System.Net.Sockets; | using System.Net.Sockets; | ||||
using System.Text; | using System.Text; | ||||
namespace shadowsocks_csharp.Controller | |||||
namespace shadowsocks.Controller | |||||
{ | { | ||||
class PACServer | class PACServer | ||||
{ | { | ||||
@@ -1,5 +1,5 @@ | |||||
using shadowsocks_csharp.Model; | |||||
using shadowsocks_csharp.Properties; | |||||
using shadowsocks.Model; | |||||
using shadowsocks.Properties; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Diagnostics; | using System.Diagnostics; | ||||
@@ -7,7 +7,7 @@ using System.IO; | |||||
using System.IO.Compression; | using System.IO.Compression; | ||||
using System.Text; | using System.Text; | ||||
namespace shadowsocks_csharp.Controller | |||||
namespace shadowsocks.Controller | |||||
{ | { | ||||
class PolipoRunner | class PolipoRunner | ||||
{ | { | ||||
@@ -1,9 +1,9 @@ | |||||
using shadowsocks_csharp.Model; | |||||
using shadowsocks.Model; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace shadowsocks_csharp.Controller | |||||
namespace shadowsocks.Controller | |||||
{ | { | ||||
public class ShadowsocksController | public class ShadowsocksController | ||||
{ | { | ||||
@@ -4,7 +4,7 @@ using System.Collections.Generic; | |||||
using System.Runtime.InteropServices; | using System.Runtime.InteropServices; | ||||
using System.Text; | using System.Text; | ||||
namespace shadowsocks_csharp.Controller | |||||
namespace shadowsocks.Controller | |||||
{ | { | ||||
public class SystemProxy | public class SystemProxy | ||||
{ | { | ||||
@@ -1,7 +1,7 @@ | |||||
using System.Security.Cryptography; | using System.Security.Cryptography; | ||||
using System.Text; | using System.Text; | ||||
namespace shadowsocks_csharp.Encrypt | |||||
namespace shadowsocks.Encrypt | |||||
{ | { | ||||
public abstract class EncryptorBase | public abstract class EncryptorBase | ||||
: IEncryptor | : IEncryptor | ||||
@@ -1,5 +1,5 @@ | |||||
| |||||
namespace shadowsocks_csharp.Encrypt | |||||
| |||||
namespace shadowsocks.Encrypt | |||||
{ | { | ||||
public static class EncryptorFactory | public static class EncryptorFactory | ||||
{ | { | ||||
@@ -1,12 +1,12 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace shadowsocks_csharp.Encrypt | |||||
{ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace shadowsocks.Encrypt | |||||
{ | |||||
public interface IEncryptor : IDisposable | public interface IEncryptor : IDisposable | ||||
{ | { | ||||
void Encrypt(byte[] buf, int length, byte[] outbuf, out int outlength); | void Encrypt(byte[] buf, int length, byte[] outbuf, out int outlength); | ||||
void Decrypt(byte[] buf, int length, byte[] outbuf, out int outlength); | |||||
} | |||||
} | |||||
void Decrypt(byte[] buf, int length, byte[] outbuf, out int outlength); | |||||
} | |||||
} |
@@ -3,7 +3,7 @@ using System.Collections.Generic; | |||||
using System.Runtime.InteropServices; | using System.Runtime.InteropServices; | ||||
using System.Text; | using System.Text; | ||||
namespace shadowsocks_csharp.Encrypt | |||||
namespace shadowsocks.Encrypt | |||||
{ | { | ||||
public class PolarSSL | public class PolarSSL | ||||
{ | { | ||||
@@ -4,7 +4,7 @@ using System.Runtime.InteropServices; | |||||
using System.Security.Cryptography; | using System.Security.Cryptography; | ||||
using System.Text; | using System.Text; | ||||
namespace shadowsocks_csharp.Encrypt | |||||
namespace shadowsocks.Encrypt | |||||
{ | { | ||||
public class PolarSSLEncryptor | public class PolarSSLEncryptor | ||||
: EncryptorBase, IDisposable | : EncryptorBase, IDisposable | ||||
@@ -1,6 +1,6 @@ | |||||
using System; | using System; | ||||
namespace shadowsocks_csharp.Encrypt | |||||
namespace shadowsocks.Encrypt | |||||
{ | { | ||||
public class TableEncryptor | public class TableEncryptor | ||||
: EncryptorBase | : EncryptorBase | ||||
@@ -3,7 +3,7 @@ using System.Collections.Generic; | |||||
using System.IO; | using System.IO; | ||||
using System.Text; | using System.Text; | ||||
namespace shadowsocks_csharp.Model | |||||
namespace shadowsocks.Model | |||||
{ | { | ||||
[Serializable] | [Serializable] | ||||
public class Configuration | public class Configuration | ||||
@@ -5,7 +5,7 @@ using System.IO; | |||||
using System.Diagnostics; | using System.Diagnostics; | ||||
using SimpleJson; | using SimpleJson; | ||||
namespace shadowsocks_csharp.Model | |||||
namespace shadowsocks.Model | |||||
{ | { | ||||
[Serializable] | [Serializable] | ||||
public class Server | public class Server | ||||
@@ -1,13 +1,13 @@ | |||||
using shadowsocks_csharp.Controller; | |||||
using shadowsocks_csharp.Properties; | |||||
using shadowsocks_csharp.View; | |||||
using shadowsocks.Controller; | |||||
using shadowsocks.Properties; | |||||
using shadowsocks.View; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.IO; | using System.IO; | ||||
using System.Runtime.InteropServices; | using System.Runtime.InteropServices; | ||||
using System.Windows.Forms; | using System.Windows.Forms; | ||||
namespace shadowsocks_csharp | |||||
namespace shadowsocks | |||||
{ | { | ||||
static class Program | static class Program | ||||
{ | { | ||||
@@ -8,7 +8,7 @@ | |||||
// </auto-generated> | // </auto-generated> | ||||
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ | ||||
namespace shadowsocks_csharp.Properties { | |||||
namespace shadowsocks.Properties { | |||||
using System; | using System; | ||||
@@ -39,7 +39,7 @@ namespace shadowsocks_csharp.Properties { | |||||
internal static global::System.Resources.ResourceManager ResourceManager { | internal static global::System.Resources.ResourceManager ResourceManager { | ||||
get { | get { | ||||
if (object.ReferenceEquals(resourceMan, null)) { | if (object.ReferenceEquals(resourceMan, null)) { | ||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("shadowsocks_csharp.Properties.Resources", typeof(Resources).Assembly); | |||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("shadowsocks.Properties.Resources", typeof(Resources).Assembly); | |||||
resourceMan = temp; | resourceMan = temp; | ||||
} | } | ||||
return resourceMan; | return resourceMan; | ||||
@@ -71,23 +71,13 @@ namespace shadowsocks_csharp.Properties { | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// Looks up a localized string similar to # Sample configuration file for Polipo. -*-sh-*- | |||||
/// | |||||
///# You should not need to use a configuration file; all configuration | |||||
///# variables have reasonable defaults. If you want to use one, you | |||||
///# can copy this to /etc/polipo/config or to ~/.polipo and modify. | |||||
/// | |||||
///# This file only contains some of the configuration variables; see the | |||||
///# list given by ``polipo -v'' and the manual for more. | |||||
/// | |||||
/// | |||||
///### Basic configuration | |||||
///### ******************* | |||||
/// | |||||
///# Uncomment one of these if you want to allow remote clients to | |||||
///# connect: | |||||
/// | |||||
///# prox [rest of string was truncated]";. | |||||
/// Looks up a localized string similar to proxyAddress = "127.0.0.1" | |||||
/// | |||||
///socksParentProxy = "127.0.0.1:__SOCKS_PORT__" | |||||
///socksProxyType = socks5 | |||||
///diskCacheRoot = "" | |||||
///localDocumentRoot = "" | |||||
///. | |||||
/// </summary> | /// </summary> | ||||
internal static string polipo_config { | internal static string polipo_config { | ||||
get { | get { | ||||
@@ -1,14 +1,14 @@ | |||||
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ | ||||
// <auto-generated> | // <auto-generated> | ||||
// This code was generated by a tool. | // This code was generated by a tool. | ||||
// Runtime Version:4.0.30319.17929 | |||||
// Runtime Version:4.0.30319.18444 | |||||
// | // | ||||
// Changes to this file may cause incorrect behavior and will be lost if | // Changes to this file may cause incorrect behavior and will be lost if | ||||
// the code is regenerated. | // the code is regenerated. | ||||
// </auto-generated> | // </auto-generated> | ||||
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ | ||||
namespace shadowsocks_csharp.Properties { | |||||
namespace shadowsocks.Properties { | |||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | ||||
@@ -1,4 +1,4 @@ | |||||
namespace shadowsocks_csharp.View | |||||
namespace shadowsocks.View | |||||
{ | { | ||||
partial class ConfigForm | partial class ConfigForm | ||||
{ | { | ||||
@@ -5,10 +5,10 @@ using System.Drawing; | |||||
using System.Text; | using System.Text; | ||||
using System.Windows.Forms; | using System.Windows.Forms; | ||||
using System.Diagnostics; | using System.Diagnostics; | ||||
using shadowsocks_csharp.Controller; | |||||
using shadowsocks_csharp.Model; | |||||
using shadowsocks.Controller; | |||||
using shadowsocks.Model; | |||||
namespace shadowsocks_csharp.View | |||||
namespace shadowsocks.View | |||||
{ | { | ||||
public partial class ConfigForm : Form | public partial class ConfigForm : Form | ||||
{ | { | ||||
@@ -8,7 +8,7 @@ | |||||
<ProjectGuid>{8C02D2F7-7CDB-4D55-9F25-CD03EF4AA062}</ProjectGuid> | <ProjectGuid>{8C02D2F7-7CDB-4D55-9F25-CD03EF4AA062}</ProjectGuid> | ||||
<OutputType>WinExe</OutputType> | <OutputType>WinExe</OutputType> | ||||
<AppDesignerFolder>Properties</AppDesignerFolder> | <AppDesignerFolder>Properties</AppDesignerFolder> | ||||
<RootNamespace>shadowsocks_csharp</RootNamespace> | |||||
<RootNamespace>shadowsocks</RootNamespace> | |||||
<AssemblyName>Shadowsocks</AssemblyName> | <AssemblyName>Shadowsocks</AssemblyName> | ||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion> | <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> | ||||
<FileAlignment>512</FileAlignment> | <FileAlignment>512</FileAlignment> | ||||