Browse Source

update namespace

tags/2.3
clowwindy 10 years ago
parent
commit
28b582590a
20 changed files with 49 additions and 59 deletions
  1. +1
    -1
      shadowsocks-csharp/Controller/FileManager.cs
  2. +3
    -3
      shadowsocks-csharp/Controller/Local.cs
  3. +2
    -2
      shadowsocks-csharp/Controller/PACServer.cs
  4. +3
    -3
      shadowsocks-csharp/Controller/PolipoRunner.cs
  5. +2
    -2
      shadowsocks-csharp/Controller/ShadowsocksController.cs
  6. +1
    -1
      shadowsocks-csharp/Controller/SystemProxy.cs
  7. +1
    -1
      shadowsocks-csharp/Encrypt/EncryptorBase.cs
  8. +2
    -2
      shadowsocks-csharp/Encrypt/EncryptorFactory.cs
  9. +9
    -9
      shadowsocks-csharp/Encrypt/IEncryptor.cs
  10. +1
    -1
      shadowsocks-csharp/Encrypt/PolarSSL.cs
  11. +1
    -1
      shadowsocks-csharp/Encrypt/PolarSSLEncryptor.cs
  12. +1
    -1
      shadowsocks-csharp/Encrypt/TableEncryptor.cs
  13. +1
    -1
      shadowsocks-csharp/Model/Configuration.cs
  14. +1
    -1
      shadowsocks-csharp/Model/Server.cs
  15. +4
    -4
      shadowsocks-csharp/Program.cs
  16. +9
    -19
      shadowsocks-csharp/Properties/Resources.Designer.cs
  17. +2
    -2
      shadowsocks-csharp/Properties/Settings.Designer.cs
  18. +1
    -1
      shadowsocks-csharp/View/ConfigForm.Designer.cs
  19. +3
    -3
      shadowsocks-csharp/View/ConfigForm.cs
  20. +1
    -1
      shadowsocks-csharp/shadowsocks-csharp.csproj

+ 1
- 1
shadowsocks-csharp/Controller/FileManager.cs View File

@@ -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
- 3
shadowsocks-csharp/Controller/Local.cs View File

@@ -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


+ 2
- 2
shadowsocks-csharp/Controller/PACServer.cs View File

@@ -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
{ {


+ 3
- 3
shadowsocks-csharp/Controller/PolipoRunner.cs View File

@@ -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
{ {


+ 2
- 2
shadowsocks-csharp/Controller/ShadowsocksController.cs View File

@@ -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
{ {


+ 1
- 1
shadowsocks-csharp/Controller/SystemProxy.cs View File

@@ -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
- 1
shadowsocks-csharp/Encrypt/EncryptorBase.cs View File

@@ -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


+ 2
- 2
shadowsocks-csharp/Encrypt/EncryptorFactory.cs View File

@@ -1,5 +1,5 @@

namespace shadowsocks_csharp.Encrypt

namespace shadowsocks.Encrypt
{ {
public static class EncryptorFactory public static class EncryptorFactory
{ {


+ 9
- 9
shadowsocks-csharp/Encrypt/IEncryptor.cs View File

@@ -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);
}
}

+ 1
- 1
shadowsocks-csharp/Encrypt/PolarSSL.cs View File

@@ -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
{ {


+ 1
- 1
shadowsocks-csharp/Encrypt/PolarSSLEncryptor.cs View File

@@ -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
- 1
shadowsocks-csharp/Encrypt/TableEncryptor.cs View File

@@ -1,6 +1,6 @@
using System; using System;
namespace shadowsocks_csharp.Encrypt
namespace shadowsocks.Encrypt
{ {
public class TableEncryptor public class TableEncryptor
: EncryptorBase : EncryptorBase


+ 1
- 1
shadowsocks-csharp/Model/Configuration.cs View File

@@ -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


+ 1
- 1
shadowsocks-csharp/Model/Server.cs View File

@@ -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


+ 4
- 4
shadowsocks-csharp/Program.cs View File

@@ -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
{ {


+ 9
- 19
shadowsocks-csharp/Properties/Resources.Designer.cs View File

@@ -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&apos;&apos; 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]&quot;;.
/// Looks up a localized string similar to proxyAddress = &quot;127.0.0.1&quot;
///
///socksParentProxy = &quot;127.0.0.1:__SOCKS_PORT__&quot;
///socksProxyType = socks5
///diskCacheRoot = &quot;&quot;
///localDocumentRoot = &quot;&quot;
///.
/// </summary> /// </summary>
internal static string polipo_config { internal static string polipo_config {
get { get {


+ 2
- 2
shadowsocks-csharp/Properties/Settings.Designer.cs View File

@@ -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
- 1
shadowsocks-csharp/View/ConfigForm.Designer.cs View File

@@ -1,4 +1,4 @@
namespace shadowsocks_csharp.View
namespace shadowsocks.View
{ {
partial class ConfigForm partial class ConfigForm
{ {


+ 3
- 3
shadowsocks-csharp/View/ConfigForm.cs View File

@@ -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
{ {


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

@@ -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>


Loading…
Cancel
Save