init commit all code

This commit is contained in:
路 范
2021-12-20 17:17:49 +08:00
parent 66d48149a6
commit f60ad763ed
1325 changed files with 1744918 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8" ?>
<ArrayOfAccountInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AccountInfo>
<AppID>10.19.93.240</AppID>
<AppSecret>xBoUvhIYHD9DiAdsEu5tvuLVXFPHqXIE0JhXpd9RDhbseQETZGeuwOOPZsgzqnYA</AppSecret>
<Key>3wiuAqSsZioJZhtjGLratOlmXGctRx5OwVVWuygtPKQYF9M3bRqSUpDug4YzC3TE</Key>
<ServiceSecret>RdUKwSrHey2SsWKD28c20eX7VS3LCZWVZ4wpSn4O4idYC1SUCKUkWAru5U7QfeAJ</ServiceSecret>
</AccountInfo>
<AccountInfo>
<AppID>local</AppID>
<AppSecret>jryIBVbuERs34vQumJhw4X71xKXNCxnQ3raqp8yXt8TTmHRohHnCJOgh0lEXULps</AppSecret>
<Key>oM6BpGCs8pdj5E0vso0bRkL1hIMRNT3k8DUaYoYEZk6FWxKwEmoETMMgTxXKovO6</Key>
<ServiceSecret>WoMmY7bAvLko3ifgRFoHxPVopg4pQKTTJsGhrHhOqHwPDKeY77XNaIGOh8CnY8FY</ServiceSecret>
</AccountInfo>
<AccountInfo>
<AppID>test</AppID>
<AppSecret>b7ybdg482IXFsojQ4feDHf4NaiSLRtFjL7MVI6ysnvjrZ6jikFX74tVZhZKYG23A</AppSecret>
<Key>TVgSoGYNJrnU7Kg6Csuodh4IdxqZGxpEJAdRlEcTn72KlUgAiHcr7bdxLKFf9pJ6</Key>
<ServiceSecret>WoMmY7bAvLko3ifgRFoHxPVopg4pQKTTJsGhrHhOqHwPDKeY77XNaIGOh8CnY8FY</ServiceSecret>
</AccountInfo>
<AccountInfo>
<AppID>Reg.Custom.Xzsp.Test</AppID>
<AppSecret>VJHKbMZtrnJhfc5Gydp0WJB0i6iHBTVXEzYdtoujIe8Vh23GIfBfrevHpSXFjtaY</AppSecret>
<Key>MXMyB3eLxaRqgJ9ggqhWRMhTVOGtis6P7P9SsQiDuqjunjoj2ta6jdIcftChXk2A</Key>
<ServiceSecret>cDnFQLeTiOEMBTQV76rWDRxJfO7RFQYga6kKhM5I7gEUPLSxrdAJuKUn2cKmqaY1</ServiceSecret>
</AccountInfo>
<AccountInfo>
<AppID>Reg.Custom.HouseSafety.Test</AppID>
<AppSecret>KAB5LmRJQrAeLkZc4LeH06wiC3hr4fkC8OglE1qnTd1gsNVL0wB7B1IyHtLP660Z</AppSecret>
<Key>NxWKPixtbPX6fRbts2ht0NvWDyVgUbuDxTZiWbWdguU2OuIJhgmHB5Q75kmXkxtJ</Key>
<ServiceSecret>6EBbbHHcGJpDKaNwjhrV4WHrftabpyDYILtlFW7SSZOwNxCnb0XEsifOqEpgdfjo</ServiceSecret>
</AccountInfo>
</ArrayOfAccountInfo>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="superSocket" type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine" />
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup>
<appSettings>
<add key="IpInfo" value=":9999"/>
<add key="AccountConfigPath" value="AccountConfig.xml"/>
</appSettings>
<superSocket>
<servers>
<server name="Getf.Service.Transfer" serverType="Getf.Service.Transfer.Core.Server, Getf.Service.Transfer.Core" port="8002">
</server>
</servers>
</superSocket>
</configuration>

View File

@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8" ?>
<log4net>
<logger name="DefaultBootstrap" additivity="false">
<level value="ALL" />
<appender-ref ref="SuperSocketSystemAppender"/>
</logger>
<logger name="Getf.Service.Transfer" additivity="false">
<level value="ALL" />
<appender-ref ref="ErrorAppender"/>
<appender-ref ref="InfoAppender"/>
<appender-ref ref="DebugAppender"/>
</logger>
<logger name="Performance" additivity="false">
<level value="ALL" />
<appender-ref ref="SuperSocketSystemAppender"/>
</logger>
<appender name="SuperSocketSystemAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\SuperSocketSystem\\" />
<param name="AppendToFile" value="true" />
<param name="MaxSizeRollBackups" value="100" />
<param name="MaxFileSize" value="10240" />
<param name="StaticLogFileName" value="false" />
<param name="DatePattern" value="yyyyMMdd&quot;.txt&quot;" />
<param name="RollingStyle" value="Date" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="%n异常时间%d %n异常级别%-5p%n异常内容%m%n" />
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<param name="LevelMin" value="ALL" />
<param name="LevelMax" value="FATAL" />
</filter>
<!--&lt; &gt; = <> %n = 回车-->
</appender>
<appender name="ErrorAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\LogError\\" />
<param name="AppendToFile" value="true" />
<param name="MaxSizeRollBackups" value="100" />
<param name="MaxFileSize" value="10240" />
<param name="StaticLogFileName" value="false" />
<param name="DatePattern" value="yyyyMMdd&quot;.txt&quot;" />
<param name="RollingStyle" value="Date" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="%n异常时间%d %n异常级别%-5p%n异常内容%m%n" />
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<param name="LevelMin" value="ERROR" />
<param name="LevelMax" value="FATAL" />
</filter>
<!--&lt; &gt; = <> %n = 回车-->
</appender>
<appender name="InfoAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\LogInfo\\" />
<param name="AppendToFile" value="true" />
<param name="MaxFileSize" value="10240" />
<param name="MaxSizeRollBackups" value="100" />
<param name="StaticLogFileName" value="false" />
<param name="DatePattern" value="yyyyMMdd&quot;.txt&quot;" />
<param name="RollingStyle" value="Date" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="日志时间:%d %n日志级别%-5p %n日志内容%m%n%n" />
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<param name="LevelMin" value="INFO" />
<param name="LevelMax" value="WARN" />
</filter>
</appender>
<appender name="DebugAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\LogDebug\\" />
<param name="AppendToFile" value="true" />
<param name="MaxFileSize" value="10240" />
<param name="MaxSizeRollBackups" value="100" />
<param name="StaticLogFileName" value="false" />
<param name="DatePattern" value="yyyyMMdd&quot;.txt&quot;" />
<param name="RollingStyle" value="Date" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="日志时间:%d %n日志级别%-5p %n日志内容%m%n%n" />
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<param name="LevelMin" value="ALL" />
<param name="LevelMax" value="DEBUG" />
</filter>
</appender>
</log4net>

View File

@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="utf-8" ?>
<log4net>
<appender name="errorAppender" type="log4net.Appender.RollingFileAppender">
<filter type="log4net.Filter.LevelMatchFilter">
<levelToMatch value="ERROR" />
</filter>
<filter type="log4net.Filter.DenyAllFilter" />
<File value="Logs/err.log" />
<encoding value="utf-8"/>
<preserveLogFileNameExtension value="true" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="infoAppender" type="log4net.Appender.RollingFileAppender">
<filter type="log4net.Filter.LevelMatchFilter">
<levelToMatch value="INFO" />
</filter>
<filter type="log4net.Filter.DenyAllFilter" />
<file value="Logs/info.log" />
<encoding value="utf-8"/>
<preserveLogFileNameExtension value="true" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="debugAppender" type="log4net.Appender.RollingFileAppender">
<filter type="log4net.Filter.LevelMatchFilter">
<levelToMatch value="DEBUG" />
</filter>
<filter type="log4net.Filter.DenyAllFilter" />
<file value="Logs/debug.log" />
<encoding value="utf-8"/>
<preserveLogFileNameExtension value="true" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<appender name="perfAppender" type="log4net.Appender.RollingFileAppender">
<filter type="log4net.Filter.LevelMatchFilter">
<levelToMatch value="INFO" />
</filter>
<filter type="log4net.Filter.DenyAllFilter" />
<file value="Logs/perf.log" />
<encoding value="utf-8"/>
<preserveLogFileNameExtension value="true" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %logger - %message%newline" />
</layout>
</appender>
<root>
<level value="ALL" />
<appender-ref ref="errorAppender" />
<appender-ref ref="infoAppender" />
<appender-ref ref="debugAppender" />
</root>
<logger name="Performance" additivity="false">
<level value="ALL" />
<appender-ref ref="perfAppender" />
</logger>
</log4net>

View File

@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{90BEB49E-D0BF-4B6E-A5AA-91DECA3E7CBF}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>Getf.Service.Transfer.WinService</RootNamespace>
<AssemblyName>Getf.Service.Transfer.WinService</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net, Version=1.2.13.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.2.0.3\lib\net40-full\log4net.dll</HintPath>
</Reference>
<Reference Include="SuperSocket.Common, Version=1.6.6.1, Culture=neutral, PublicKeyToken=6c80000676988ebb, processorArchitecture=MSIL">
<HintPath>..\packages\SuperSocket.1.6.6.1\lib\net45\SuperSocket.Common.dll</HintPath>
</Reference>
<Reference Include="SuperSocket.Facility, Version=1.6.6.1, Culture=neutral, PublicKeyToken=6c80000676988ebb, processorArchitecture=MSIL">
<HintPath>..\packages\SuperSocket.1.6.6.1\lib\net45\SuperSocket.Facility.dll</HintPath>
</Reference>
<Reference Include="SuperSocket.SocketBase, Version=1.6.6.1, Culture=neutral, PublicKeyToken=6c80000676988ebb, processorArchitecture=MSIL">
<HintPath>..\packages\SuperSocket.1.6.6.1\lib\net45\SuperSocket.SocketBase.dll</HintPath>
</Reference>
<Reference Include="SuperSocket.SocketEngine, Version=1.6.6.1, Culture=neutral, PublicKeyToken=6c80000676988ebb, processorArchitecture=MSIL">
<HintPath>..\packages\SuperSocket.Engine.1.6.6.1\lib\net45\SuperSocket.SocketEngine.dll</HintPath>
</Reference>
<Reference Include="SuperSocket.SocketService, Version=1.6.6.1, Culture=neutral, PublicKeyToken=6c80000676988ebb, processorArchitecture=MSIL">
<HintPath>..\packages\SuperSocket.Engine.1.6.6.1\lib\net45\SuperSocket.SocketService.exe</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Configuration.Install" />
<Reference Include="System.Core" />
<Reference Include="System.Management" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.ServiceProcess" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ProjectInstaller.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="ProjectInstaller.Designer.cs">
<DependentUpon>ProjectInstaller.cs</DependentUpon>
</Compile>
<Compile Include="Service1.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Service1.Designer.cs">
<DependentUpon>Service1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="Config\log4net.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Config\log4net.unix.config" />
<None Include="packages.config" />
<None Include="supersocket.cmd" />
<None Include="supersocket.sh" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="ProjectInstaller.resx">
<DependentUpon>ProjectInstaller.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Content Include="AccountConfig.xml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Getf.Service.Transfer.Core\Getf.Service.Transfer.Core.csproj">
<Project>{600fa1a3-1330-4a26-8686-29dfea0ce768}</Project>
<Name>Getf.Service.Transfer.Core</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
namespace Getf.Service.Transfer.WinService
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new Service1()
};
ServiceBase.Run(ServicesToRun);
}
}
}

View File

@@ -0,0 +1,56 @@
namespace Getf.Service.Transfer.WinService
{
partial class ProjectInstaller
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller();
this.serviceInstaller1 = new System.ServiceProcess.ServiceInstaller();
//
// serviceProcessInstaller1
//
this.serviceProcessInstaller1.Password = null;
this.serviceProcessInstaller1.Username = null;
//
// serviceInstaller1
//
this.serviceInstaller1.ServiceName = "Service1";
//
// ProjectInstaller
//
this.Installers.AddRange(new System.Configuration.Install.Installer[] {
this.serviceProcessInstaller1,
this.serviceInstaller1});
}
#endregion
private System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller1;
private System.ServiceProcess.ServiceInstaller serviceInstaller1;
}
}

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.Threading.Tasks;
namespace Getf.Service.Transfer.WinService
{
[RunInstaller(true)]
public partial class ProjectInstaller : System.Configuration.Install.Installer
{
public ProjectInstaller()
{
InitializeComponent();
this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem;
serviceInstaller1.ServiceName = "Getf.Service.Transfer.WinService";
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Getf.Service.Transfer.WinService")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Hewlett-Packard")]
[assembly: AssemblyProduct("Getf.Service.Transfer.WinService")]
[assembly: AssemblyCopyright("Copyright © Hewlett-Packard 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("90beb49e-d0bf-4b6e-a5aa-91deca3e7cbf")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -0,0 +1,37 @@
namespace Getf.Service.Transfer.WinService
{
partial class Service1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
this.ServiceName = "Service1";
}
#endregion
}
}

View File

@@ -0,0 +1,49 @@
using Getf.Service.Transfer.Core;
using SuperSocket.SocketEngine;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
namespace Getf.Service.Transfer.WinService
{
public partial class Service1 : ServiceBase
{
private Server _Server;
public Service1()
{
InitializeComponent();
}
protected override void OnStart(string[] args)
{
/*var ipInfo = System.Configuration.ConfigurationManager.AppSettings["IpInfo"].Split(':');
_Server = new Server();
if (ipInfo[0] != String.Empty)
{
_Server.Setup(ipInfo[0], int.Parse(ipInfo[1]));
}
else
{
_Server.Setup(int.Parse(ipInfo[1]));
}
_Server.Start();*/
var boostrap = BootstrapFactory.CreateBootstrap();
boostrap.Initialize();
boostrap.Start();
}
protected override void OnStop()
{
_Server.Stop();
_Server.Dispose();
_Server = null;
}
}
}

View File

@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8" ?>
<log4net>
<logger name="DefaultBootstrap" additivity="false">
<level value="ALL" />
<appender-ref ref="SuperSocketSystemAppender"/>
</logger>
<logger name="Getf.Service.Transfer" additivity="false">
<level value="ALL" />
<appender-ref ref="ErrorAppender"/>
<appender-ref ref="InfoAppender"/>
<appender-ref ref="DebugAppender"/>
</logger>
<logger name="Performance" additivity="false">
<level value="ALL" />
<appender-ref ref="SuperSocketSystemAppender"/>
</logger>
<appender name="SuperSocketSystemAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\SuperSocketSystem\\" />
<param name="AppendToFile" value="true" />
<param name="MaxSizeRollBackups" value="100" />
<param name="MaxFileSize" value="10240" />
<param name="StaticLogFileName" value="false" />
<param name="DatePattern" value="yyyyMMdd&quot;.txt&quot;" />
<param name="RollingStyle" value="Date" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="%n异常时间%d %n异常级别%-5p%n异常内容%m%n" />
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<param name="LevelMin" value="ALL" />
<param name="LevelMax" value="FATAL" />
</filter>
<!--&lt; &gt; = <> %n = 回车-->
</appender>
<appender name="ErrorAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\LogError\\" />
<param name="AppendToFile" value="true" />
<param name="MaxSizeRollBackups" value="100" />
<param name="MaxFileSize" value="10240" />
<param name="StaticLogFileName" value="false" />
<param name="DatePattern" value="yyyyMMdd&quot;.txt&quot;" />
<param name="RollingStyle" value="Date" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="%n异常时间%d %n异常级别%-5p%n异常内容%m%n" />
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<param name="LevelMin" value="ERROR" />
<param name="LevelMax" value="FATAL" />
</filter>
<!--&lt; &gt; = <> %n = 回车-->
</appender>
<appender name="InfoAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\LogInfo\\" />
<param name="AppendToFile" value="true" />
<param name="MaxFileSize" value="10240" />
<param name="MaxSizeRollBackups" value="100" />
<param name="StaticLogFileName" value="false" />
<param name="DatePattern" value="yyyyMMdd&quot;.txt&quot;" />
<param name="RollingStyle" value="Date" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="日志时间:%d %n日志级别%-5p %n日志内容%m%n%n" />
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<param name="LevelMin" value="INFO" />
<param name="LevelMax" value="WARN" />
</filter>
</appender>
<appender name="DebugAppender" type="log4net.Appender.RollingFileAppender">
<param name="File" value="Log\\LogDebug\\" />
<param name="AppendToFile" value="true" />
<param name="MaxFileSize" value="10240" />
<param name="MaxSizeRollBackups" value="100" />
<param name="StaticLogFileName" value="false" />
<param name="DatePattern" value="yyyyMMdd&quot;.txt&quot;" />
<param name="RollingStyle" value="Date" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="日志时间:%d %n日志级别%-5p %n日志内容%m%n%n" />
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<param name="LevelMin" value="ALL" />
<param name="LevelMax" value="DEBUG" />
</filter>
</appender>
</log4net>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="superSocket" type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine" />
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup>
<appSettings>
<add key="IpInfo" value=":9999"/>
<add key="AccountConfigPath" value="AccountConfig.xml"/>
</appSettings>
<superSocket>
<servers>
<server name="Getf.Service.Transfer" serverType="Getf.Service.Transfer.Core.Server, Getf.Service.Transfer.Core" port="8002">
</server>
</servers>
</superSocket>
</configuration>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,601 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>SuperSocket.Facility</name>
</assembly>
<members>
<member name="T:SuperSocket.Facility.PolicyServer.FlashPolicyServer">
<summary>
Flash policy AppServer
</summary>
</member>
<member name="T:SuperSocket.Facility.PolicyServer.PolicyServer">
<summary>
PolicyServer base class
</summary>
</member>
<member name="M:SuperSocket.Facility.PolicyServer.PolicyServer.#ctor">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.PolicyServer.PolicyServer"/> class.
</summary>
</member>
<member name="M:SuperSocket.Facility.PolicyServer.PolicyServer.Setup(SuperSocket.SocketBase.Config.IRootConfig,SuperSocket.SocketBase.Config.IServerConfig)">
<summary>
Setups the specified root config.
</summary>
<param name="rootConfig">The root config.</param>
<param name="config">The config.</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.PolicyServer.PolicyServer.SetupPolicyResponse(System.Byte[])">
<summary>
Setups the policy response.
</summary>
<param name="policyFileData">The policy file data.</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.PolicyServer.PolicyServer.GetPolicyFileResponse(System.Net.IPEndPoint)">
<summary>
Gets the policy file response.
</summary>
<param name="clientEndPoint">The client end point.</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.PolicyServer.PolicyServer.ProcessRequest(SuperSocket.Facility.PolicyServer.PolicySession,System.Byte[])">
<summary>
Processes the request.
</summary>
<param name="session">The session.</param>
<param name="data">The data.</param>
</member>
<member name="P:SuperSocket.Facility.PolicyServer.PolicyServer.PolicyResponse">
<summary>
Gets the policy response.
</summary>
</member>
<member name="M:SuperSocket.Facility.PolicyServer.FlashPolicyServer.#ctor">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.PolicyServer.FlashPolicyServer"/> class.
</summary>
</member>
<member name="M:SuperSocket.Facility.PolicyServer.FlashPolicyServer.SetupPolicyResponse(System.Byte[])">
<summary>
Setups the policy response.
</summary>
<param name="policyFileData">The policy file data.</param>
<returns></returns>
</member>
<member name="T:SuperSocket.Facility.PolicyServer.PolicyReceiveFilter">
<summary>
PolicyReceiveFilter
</summary>
</member>
<member name="T:SuperSocket.Facility.Protocol.FixedSizeReceiveFilter`1">
<summary>
FixedSizeReceiveFilter
</summary>
<typeparam name="TRequestInfo">The type of the request info.</typeparam>
</member>
<member name="F:SuperSocket.Facility.Protocol.FixedSizeReceiveFilter`1.NullRequestInfo">
<summary>
Null RequestInfo
</summary>
</member>
<member name="M:SuperSocket.Facility.Protocol.FixedSizeReceiveFilter`1.#ctor(System.Int32)">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.Protocol.FixedSizeReceiveFilter`1"/> class.
</summary>
<param name="size">The size.</param>
</member>
<member name="M:SuperSocket.Facility.Protocol.FixedSizeReceiveFilter`1.Filter(System.Byte[],System.Int32,System.Int32,System.Boolean,System.Int32@)">
<summary>
Filters the specified session.
</summary>
<param name="readBuffer">The read buffer.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<param name="toBeCopied">if set to <c>true</c> [to be copied].</param>
<param name="rest">The rest.</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.Protocol.FixedSizeReceiveFilter`1.ProcessMatchedRequest(System.Byte[],System.Int32,System.Int32,System.Boolean)">
<summary>
Filters the buffer after the server receive the enough size of data.
</summary>
<param name="buffer">The buffer.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<param name="toBeCopied">if set to <c>true</c> [to be copied].</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.Protocol.FixedSizeReceiveFilter`1.Reset">
<summary>
Resets this instance.
</summary>
</member>
<member name="P:SuperSocket.Facility.Protocol.FixedSizeReceiveFilter`1.Size">
<summary>
Gets the size of the fixed size Receive filter.
</summary>
</member>
<member name="P:SuperSocket.Facility.Protocol.FixedSizeReceiveFilter`1.LeftBufferSize">
<summary>
Gets the size of the rest buffer.
</summary>
<value>
The size of the rest buffer.
</value>
</member>
<member name="P:SuperSocket.Facility.Protocol.FixedSizeReceiveFilter`1.NextReceiveFilter">
<summary>
Gets the next Receive filter.
</summary>
</member>
<member name="P:SuperSocket.Facility.Protocol.FixedSizeReceiveFilter`1.SuperSocket#SocketBase#Protocol#IOffsetAdapter#OffsetDelta">
<summary>
Gets the offset delta.
</summary>
</member>
<member name="P:SuperSocket.Facility.Protocol.FixedSizeReceiveFilter`1.State">
<summary>
Gets the filter state.
</summary>
<value>
The filter state.
</value>
</member>
<member name="M:SuperSocket.Facility.PolicyServer.PolicyReceiveFilter.#ctor(System.Int32)">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.PolicyServer.PolicyReceiveFilter"/> class.
</summary>
<param name="size">The size.</param>
</member>
<member name="M:SuperSocket.Facility.PolicyServer.PolicyReceiveFilter.ProcessMatchedRequest(System.Byte[],System.Int32,System.Int32,System.Boolean)">
<summary>
Filters the buffer after the server receive the enough size of data.
</summary>
<param name="buffer">The buffer.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<param name="toBeCopied">if set to <c>true</c> [to be copied].</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.PolicyServer.PolicyReceiveFilterFactory.#ctor(System.Int32)">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.PolicyServer.PolicyReceiveFilterFactory"/> class.
</summary>
<param name="fixRequestSize">Size of the fix request.</param>
</member>
<member name="M:SuperSocket.Facility.PolicyServer.PolicyReceiveFilterFactory.CreateFilter(SuperSocket.SocketBase.IAppServer,SuperSocket.SocketBase.IAppSession,System.Net.IPEndPoint)">
<summary>
Creates the filter.
</summary>
<param name="appServer">The app server.</param>
<param name="appSession">The app session.</param>
<param name="remoteEndPoint">The remote end point.</param>
<returns></returns>
</member>
<member name="P:SuperSocket.Facility.PolicyServer.PolicyReceiveFilterFactory.FixRequestSize">
<summary>
Gets the size of the fix request.
</summary>
<value>
The size of the fix request.
</value>
</member>
<member name="T:SuperSocket.Facility.PolicyServer.PolicySession">
<summary>
PolicySession
</summary>
</member>
<member name="T:SuperSocket.Facility.PolicyServer.SilverlightPolicyServer">
<summary>
Silverlight policy AppServer
</summary>
</member>
<member name="M:SuperSocket.Facility.PolicyServer.SilverlightPolicyServer.#ctor">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.PolicyServer.SilverlightPolicyServer"/> class.
</summary>
</member>
<member name="M:SuperSocket.Facility.PolicyServer.SilverlightPolicyServer.ProcessRequest(SuperSocket.Facility.PolicyServer.PolicySession,System.Byte[])">
<summary>
Processes the request.
</summary>
<param name="session">The session.</param>
<param name="data">The data.</param>
</member>
<member name="T:SuperSocket.Facility.Protocol.BeginEndMarkReceiveFilter`1">
<summary>
ReceiveFilter for the protocol that each request has bengin and end mark
</summary>
<typeparam name="TRequestInfo">The type of the request info.</typeparam>
</member>
<member name="F:SuperSocket.Facility.Protocol.BeginEndMarkReceiveFilter`1.NullRequestInfo">
<summary>
Null request info
</summary>
</member>
<member name="M:SuperSocket.Facility.Protocol.BeginEndMarkReceiveFilter`1.#ctor(System.Byte[],System.Byte[])">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.Protocol.BeginEndMarkReceiveFilter`1"/> class.
</summary>
<param name="beginMark">The begin mark.</param>
<param name="endMark">The end mark.</param>
</member>
<member name="M:SuperSocket.Facility.Protocol.BeginEndMarkReceiveFilter`1.Filter(System.Byte[],System.Int32,System.Int32,System.Boolean,System.Int32@)">
<summary>
Filters the specified session.
</summary>
<param name="readBuffer">The read buffer.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<param name="toBeCopied">if set to <c>true</c> [to be copied].</param>
<param name="rest">The rest.</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.Protocol.BeginEndMarkReceiveFilter`1.ProcessMatchedRequest(System.Byte[],System.Int32,System.Int32)">
<summary>
Processes the matched request.
</summary>
<param name="readBuffer">The read buffer.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.Protocol.BeginEndMarkReceiveFilter`1.Reset">
<summary>
Resets this instance.
</summary>
</member>
<member name="T:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter`1">
<summary>
This Receive filter is designed for this kind protocol:
each request has fixed count part which splited by a char(byte)
for instance, request is defined like this "#12122#23343#4545456565#343435446#",
because this request is splited into many parts by 5 '#', we can create a Receive filter by CountSpliterRequestFilter((byte)'#', 5)
</summary>
<typeparam name="TRequestInfo">The type of the request info.</typeparam>
</member>
<member name="F:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter`1.NullRequestInfo">
<summary>
Null request info instance
</summary>
</member>
<member name="M:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter`1.#ctor(System.Byte,System.Int32)">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter`1"/> class.
</summary>
<param name="spliter">The spliter.</param>
<param name="spliterCount">The spliter count.</param>
</member>
<member name="M:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter`1.Filter(System.Byte[],System.Int32,System.Int32,System.Boolean,System.Int32@)">
<summary>
Filters the specified session.
</summary>
<param name="readBuffer">The read buffer.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<param name="toBeCopied">if set to <c>true</c> [to be copied].</param>
<param name="rest">The rest.</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter`1.ProcessMatchedRequest(System.Byte[],System.Int32,System.Int32)">
<summary>
Processes the matched request.
</summary>
<param name="readBuffer">The read buffer.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter`1.Reset">
<summary>
Resets this instance.
</summary>
</member>
<member name="P:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter`1.LeftBufferSize">
<summary>
Gets the size of the rest buffer.
</summary>
<value>
The size of the rest buffer.
</value>
</member>
<member name="P:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter`1.NextReceiveFilter">
<summary>
Gets the next Receive filter.
</summary>
</member>
<member name="P:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter`1.OffsetDelta">
<summary>
Gets the offset delta relative original receiving offset which will be used for next round receiving.
</summary>
</member>
<member name="P:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter`1.State">
<summary>
Gets the filter state.
</summary>
<value>
The filter state.
</value>
</member>
<member name="T:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter">
<summary>
This Receive filter is designed for this kind protocol:
each request has fixed count part which splited by a char(byte)
for instance, request is defined like this "#12122#23343#4545456565#343435446#",
because this request is splited into many parts by 5 '#', we can create a Receive filter by CountSpliterRequestFilter((byte)'#', 5)
</summary>
</member>
<member name="M:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter.#ctor(System.Byte,System.Int32)">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter"/> class.
</summary>
<param name="spliter">The spliter.</param>
<param name="spliterCount">The spliter count.</param>
</member>
<member name="M:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter.#ctor(System.Byte,System.Int32,System.Text.Encoding)">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter"/> class.
</summary>
<param name="spliter">The spliter.</param>
<param name="spliterCount">The spliter count.</param>
<param name="encoding">The encoding.</param>
</member>
<member name="M:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter.#ctor(System.Byte,System.Int32,System.Text.Encoding,System.Int32)">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter"/> class.
</summary>
<param name="spliter">The spliter.</param>
<param name="spliterCount">The spliter count.</param>
<param name="encoding">The encoding.</param>
<param name="keyIndex">Index of the key.</param>
</member>
<member name="M:SuperSocket.Facility.Protocol.CountSpliterReceiveFilter.ProcessMatchedRequest(System.Byte[],System.Int32,System.Int32)">
<summary>
Processes the matched request.
</summary>
<param name="readBuffer">The read buffer.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<returns></returns>
</member>
<member name="T:SuperSocket.Facility.Protocol.CountSpliterReceiveFilterFactory`2">
<summary>
ReceiveFilterFactory for CountSpliterReceiveFilter
</summary>
<typeparam name="TRequestFilter">The type of the Receive filter.</typeparam>
<typeparam name="TRequestInfo">The type of the request info.</typeparam>
</member>
<member name="M:SuperSocket.Facility.Protocol.CountSpliterReceiveFilterFactory`2.CreateFilter(SuperSocket.SocketBase.IAppServer,SuperSocket.SocketBase.IAppSession,System.Net.IPEndPoint)">
<summary>
Creates the filter.
</summary>
<param name="appServer">The app server.</param>
<param name="appSession">The app session.</param>
<param name="remoteEndPoint">The remote end point.</param>
<returns></returns>
</member>
<member name="T:SuperSocket.Facility.Protocol.CountSpliterReceiveFilterFactory`1">
<summary>
ReceiveFilterFactory for CountSpliterReceiveFilter
</summary>
<typeparam name="TRequestFilter">The type of the Receive filter.</typeparam>
</member>
<member name="T:SuperSocket.Facility.Protocol.CountSpliterReceiveFilterFactory">
<summary>
receiveFilterFactory for CountSpliterRequestFilter
</summary>
</member>
<member name="M:SuperSocket.Facility.Protocol.CountSpliterReceiveFilterFactory.#ctor(System.Byte,System.Int32)">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.Protocol.CountSpliterReceiveFilterFactory"/> class.
</summary>
<param name="spliter">The spliter.</param>
<param name="count">The count.</param>
</member>
<member name="M:SuperSocket.Facility.Protocol.CountSpliterReceiveFilterFactory.CreateFilter(SuperSocket.SocketBase.IAppServer,SuperSocket.SocketBase.IAppSession,System.Net.IPEndPoint)">
<summary>
Creates the filter.
</summary>
<param name="appServer">The app server.</param>
<param name="appSession">The app session.</param>
<param name="remoteEndPoint">The remote end point.</param>
<returns></returns>
</member>
<member name="T:SuperSocket.Facility.Protocol.FixedHeaderReceiveFilter`1">
<summary>
FixedHeaderReceiveFilter,
it is the Receive filter base for the protocol which define fixed length header and the header contains the request body length,
you can implement your own Receive filter for this kind protocol easily by inheriting this class
</summary>
<typeparam name="TRequestInfo">The type of the request info.</typeparam>
</member>
<member name="M:SuperSocket.Facility.Protocol.FixedHeaderReceiveFilter`1.#ctor(System.Int32)">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.Protocol.FixedHeaderReceiveFilter`1"/> class.
</summary>
<param name="headerSize">Size of the header.</param>
</member>
<member name="M:SuperSocket.Facility.Protocol.FixedHeaderReceiveFilter`1.Filter(System.Byte[],System.Int32,System.Int32,System.Boolean,System.Int32@)">
<summary>
Filters the specified session.
</summary>
<param name="readBuffer">The read buffer.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<param name="toBeCopied">if set to <c>true</c> [to be copied].</param>
<param name="rest">The rest.</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.Protocol.FixedHeaderReceiveFilter`1.ProcessMatchedRequest(System.Byte[],System.Int32,System.Int32,System.Boolean)">
<summary>
Processes the fix size request.
</summary>
<param name="buffer">The buffer.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<param name="toBeCopied">if set to <c>true</c> [to be copied].</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.Protocol.FixedHeaderReceiveFilter`1.GetBodyLengthFromHeader(System.Byte[],System.Int32,System.Int32)">
<summary>
Gets the body length from header.
</summary>
<param name="header">The header.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.Protocol.FixedHeaderReceiveFilter`1.ResolveRequestInfo(System.ArraySegment{System.Byte},System.Byte[],System.Int32,System.Int32)">
<summary>
Resolves the request data.
</summary>
<param name="header">The header.</param>
<param name="bodyBuffer">The body buffer.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.Protocol.FixedHeaderReceiveFilter`1.Reset">
<summary>
Resets this instance.
</summary>
</member>
<member name="T:SuperSocket.Facility.Protocol.HttpReceiveFilterBase`1">
<summary>
HttpReceiveFilterBase
</summary>
<typeparam name="TRequestInfo">The type of the request info.</typeparam>
</member>
<member name="F:SuperSocket.Facility.Protocol.HttpReceiveFilterBase`1.NewLine">
<summary>
Http header terminator
</summary>
</member>
<member name="F:SuperSocket.Facility.Protocol.HttpReceiveFilterBase`1.m_HeaderParsed">
<summary>
indicate whether the header has been parsed
</summary>
</member>
<member name="M:SuperSocket.Facility.Protocol.HttpReceiveFilterBase`1.#ctor">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.Protocol.HttpReceiveFilterBase`1"/> class.
</summary>
</member>
<member name="M:SuperSocket.Facility.Protocol.HttpReceiveFilterBase`1.Filter(System.Byte[],System.Int32,System.Int32,System.Boolean,System.Int32@)">
<summary>
Filters the specified session.
</summary>
<param name="readBuffer">The read buffer.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<param name="toBeCopied">if set to <c>true</c> [to be copied].</param>
<param name="rest">The rest.</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.Protocol.HttpReceiveFilterBase`1.FilterRequestBody(System.Byte[],System.Int32,System.Int32,System.Boolean,System.Int32@)">
<summary>
Filters the request body.
</summary>
<param name="readBuffer">The read buffer.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<param name="toBeCopied">if set to <c>true</c> [to be copied].</param>
<param name="rest">The rest data size.</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.Protocol.HttpReceiveFilterBase`1.ProcessMatchedRequest(System.Byte[],System.Int32,System.Int32)">
<summary>
Resolves the specified data.
</summary>
<param name="data">The data.</param>
<param name="offset">The offset.</param>
<param name="length">The length.</param>
<returns></returns>
</member>
<member name="M:SuperSocket.Facility.Protocol.HttpReceiveFilterBase`1.FilterRequestHeader(System.Collections.Specialized.NameValueCollection)">
<summary>
Filters the request header.
</summary>
<param name="header">The header.</param>
<returns>
return the parsed request info from header; if the request has body, this method should return null
</returns>
</member>
<member name="M:SuperSocket.Facility.Protocol.HttpReceiveFilterBase`1.Reset">
<summary>
Resets this instance to inital state.
</summary>
</member>
<member name="P:SuperSocket.Facility.Protocol.HttpReceiveFilterBase`1.HeaderItems">
<summary>
Gets the header items.
</summary>
</member>
<member name="T:SuperSocket.Facility.Protocol.IHttpRequestInfo">
<summary>
IHttpRequestInfo
</summary>
</member>
<member name="P:SuperSocket.Facility.Protocol.IHttpRequestInfo.Header">
<summary>
Gets the http header.
</summary>
</member>
<member name="T:SuperSocket.Facility.Protocol.HttpRequestInfoBase">
<summary>
HttpRequestInfoBase
</summary>
</member>
<member name="M:SuperSocket.Facility.Protocol.HttpRequestInfoBase.#ctor(System.String,System.Collections.Specialized.NameValueCollection)">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.Protocol.HttpRequestInfoBase"/> class.
</summary>
<param name="key">The key.</param>
<param name="header">The header.</param>
</member>
<member name="P:SuperSocket.Facility.Protocol.HttpRequestInfoBase.Key">
<summary>
Gets the key of this request.
</summary>
</member>
<member name="P:SuperSocket.Facility.Protocol.HttpRequestInfoBase.Header">
<summary>
Gets the http header.
</summary>
</member>
<member name="T:SuperSocket.Facility.Protocol.HttpRequestInfoBase`1">
<summary>
HttpRequestInfoBase
</summary>
<typeparam name="TRequestBody">The type of the request body.</typeparam>
</member>
<member name="M:SuperSocket.Facility.Protocol.HttpRequestInfoBase`1.#ctor(System.String,System.Collections.Specialized.NameValueCollection,`0)">
<summary>
Initializes a new instance of the <see cref="T:SuperSocket.Facility.Protocol.HttpRequestInfoBase`1"/> class.
</summary>
<param name="key">The key.</param>
<param name="header">The header.</param>
<param name="body">The body.</param>
</member>
<member name="P:SuperSocket.Facility.Protocol.HttpRequestInfoBase`1.Body">
<summary>
Gets the body.
</summary>
</member>
<member name="T:SuperSocket.Facility.Protocol.MimeHeaderHelper">
<summary>
MimeHeader Helper class
</summary>
</member>
<member name="M:SuperSocket.Facility.Protocol.MimeHeaderHelper.ParseHttpHeader(System.String,System.Collections.Specialized.NameValueCollection)">
<summary>
Parses the HTTP header.
</summary>
<param name="headerData">The header data.</param>
<param name="header">The header.</param>
</member>
</members>
</doc>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = ".NET Framework 4.5")]

View File

@@ -0,0 +1 @@
22b25b75906f091bd58cf78dfc046231e64c2d28

View File

@@ -0,0 +1,54 @@
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\Config\log4net.config
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\Getf.Service.Transfer.WinService.exe.config
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\Getf.Service.Transfer.WinService.exe
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\Getf.Service.Transfer.WinService.pdb
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\Getf.Service.Transfer.Core.dll
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\log4net.dll
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.Common.dll
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.Facility.dll
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.SocketBase.dll
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.SocketEngine.dll
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.SocketService.exe
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\Newtonsoft.Json.dll
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\Getf.Service.Transfer.Core.pdb
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\log4net.xml
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.Common.xml
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.Facility.xml
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.SocketBase.xml
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.SocketEngine.xml
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\Newtonsoft.Json.pdb
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\bin\Debug\Newtonsoft.Json.xml
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\obj\Debug\Getf.Service.Transfer.WinService.csproj.AssemblyReference.cache
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\obj\Debug\Getf.Service.Transfer.WinService.ProjectInstaller.resources
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\obj\Debug\Getf.Service.Transfer.WinService.csproj.GenerateResource.cache
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\obj\Debug\Getf.Service.Transfer.WinService.csproj.CoreCompileInputs.cache
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\obj\Debug\Getf.Service.Transfer.WinService.csproj.CopyComplete
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\obj\Debug\Getf.Service.Transfer.WinService.exe
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.WinService\obj\Debug\Getf.Service.Transfer.WinService.pdb
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\Config\log4net.config
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\Getf.Service.Transfer.WinService.exe.config
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\Getf.Service.Transfer.WinService.exe
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\Getf.Service.Transfer.WinService.pdb
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\Getf.Service.Transfer.Core.dll
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\log4net.dll
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.Common.dll
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.Facility.dll
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.SocketBase.dll
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.SocketEngine.dll
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.SocketService.exe
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\Newtonsoft.Json.dll
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\Getf.Service.Transfer.Core.pdb
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\log4net.xml
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.Common.xml
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.Facility.xml
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.SocketBase.xml
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\SuperSocket.SocketEngine.xml
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\Newtonsoft.Json.pdb
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\bin\Debug\Newtonsoft.Json.xml
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\obj\Debug\Getf.Service.Transfer.WinService.csproj.AssemblyReference.cache
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\obj\Debug\Getf.Service.Transfer.WinService.ProjectInstaller.resources
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\obj\Debug\Getf.Service.Transfer.WinService.csproj.GenerateResource.cache
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\obj\Debug\Getf.Service.Transfer.WinService.csproj.CoreCompileInputs.cache
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\obj\Debug\Getf.Service.Transfer.WinService.csproj.CopyComplete
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\obj\Debug\Getf.Service.Transfer.WinService.exe
D:\WORK\C宁波拆迁\neiwai_transfer\94_wai\Getf.Service.Transfer.WinService\obj\Debug\Getf.Service.Transfer.WinService.pdb

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.3" targetFramework="net45" />
<package id="SuperSocket" version="1.6.6.1" targetFramework="net45" />
<package id="SuperSocket.Engine" version="1.6.6.1" targetFramework="net45" />
</packages>

View File

@@ -0,0 +1,2 @@
@echo off
SuperSocket.SocketService.exe -c %1 %2

View File

@@ -0,0 +1,2 @@
#!/bin/bash
mono SuperSocket.SocketService.exe -c $1 $2