init commit all code
This commit is contained in:
BIN
94_wai/.vs/Getf.Service.Transfer/v16/.suo
Normal file
BIN
94_wai/.vs/Getf.Service.Transfer/v16/.suo
Normal file
Binary file not shown.
27
94_wai/Getf.Service.Transfer.Core/AccountService.cs
Normal file
27
94_wai/Getf.Service.Transfer.Core/AccountService.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Getf.Service.Transfer.Core.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace Getf.Service.Transfer.Core
|
||||
{
|
||||
public class AccountService
|
||||
{
|
||||
public AccountInfo[] GetData()
|
||||
{
|
||||
var path = System.Configuration.ConfigurationManager.AppSettings["AccountConfigPath"];
|
||||
var curPath = System.AppDomain.CurrentDomain.BaseDirectory;
|
||||
path = Path.Combine(curPath, path);
|
||||
XmlSerializer xmlSerializer = new XmlSerializer(typeof(AccountInfo[]));
|
||||
|
||||
XmlReader xmlReader = XmlReader.Create(path);
|
||||
var r = xmlSerializer.Deserialize(xmlReader) as AccountInfo[];
|
||||
xmlReader.Close();
|
||||
return r;
|
||||
}
|
||||
}
|
||||
}
|
||||
73
94_wai/Getf.Service.Transfer.Core/Config/log4net.config
Normal file
73
94_wai/Getf.Service.Transfer.Core/Config/log4net.config
Normal 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>
|
||||
73
94_wai/Getf.Service.Transfer.Core/Config/log4net.unix.config
Normal file
73
94_wai/Getf.Service.Transfer.Core/Config/log4net.unix.config
Normal 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>
|
||||
24
94_wai/Getf.Service.Transfer.Core/Entities/AccountInfo.cs
Normal file
24
94_wai/Getf.Service.Transfer.Core/Entities/AccountInfo.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace Getf.Service.Transfer.Core.Entities
|
||||
{
|
||||
[XmlRoot]
|
||||
public class AccountInfo
|
||||
{
|
||||
[XmlElement]
|
||||
public string AppID { get; set; }
|
||||
|
||||
[XmlElement]
|
||||
public string AppSecret { get; set; }
|
||||
|
||||
[XmlElement]
|
||||
public string Key { get; set; }
|
||||
|
||||
[XmlElement]
|
||||
public string ServiceSecret { get; set; }
|
||||
}
|
||||
}
|
||||
14
94_wai/Getf.Service.Transfer.Core/Entities/ClientInfo.cs
Normal file
14
94_wai/Getf.Service.Transfer.Core/Entities/ClientInfo.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Getf.Service.Transfer.Core.Entities
|
||||
{
|
||||
public class ClientInfo
|
||||
{
|
||||
public Session Session { get; set; }
|
||||
|
||||
public AccountInfo AccountInfo { get; set; }
|
||||
}
|
||||
}
|
||||
19
94_wai/Getf.Service.Transfer.Core/Entities/TransBody.cs
Normal file
19
94_wai/Getf.Service.Transfer.Core/Entities/TransBody.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Getf.Service.Transfer.Core.Entities
|
||||
{
|
||||
public class TransBody
|
||||
{
|
||||
public string TargetAppID { get; set; }
|
||||
public string AppID { get; set; }
|
||||
public string AppSecret { get; set; }
|
||||
public string Action { get; set; }
|
||||
public string Param { get; set; }
|
||||
|
||||
public string Key { get; set; }
|
||||
}
|
||||
}
|
||||
29
94_wai/Getf.Service.Transfer.Core/Entities/TransHead.cs
Normal file
29
94_wai/Getf.Service.Transfer.Core/Entities/TransHead.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Getf.Service.Transfer.Core.Entities
|
||||
{
|
||||
public class TransHead
|
||||
{
|
||||
public string AppID { get; set; }
|
||||
public string AppSecret { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用于认证服务器端的标识
|
||||
/// </summary>
|
||||
public string ServiceSecret { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1 注册 2 请求 3 应答 4 心跳包
|
||||
/// </summary>
|
||||
public int Type { get; set; }
|
||||
|
||||
public string Param { get; set; }
|
||||
|
||||
public long TimeStamp { get; set; }
|
||||
|
||||
public string Sign { get; set; }
|
||||
}
|
||||
}
|
||||
26
94_wai/Getf.Service.Transfer.Core/Entities/TransInfo.cs
Normal file
26
94_wai/Getf.Service.Transfer.Core/Entities/TransInfo.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Newtonsoft.Json;
|
||||
using SuperSocket.SocketBase.Protocol;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Getf.Service.Transfer.Core.Entities
|
||||
{
|
||||
public class TransInfo : IRequestInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 16
|
||||
/// </summary>
|
||||
public string Key { get; set; }
|
||||
|
||||
public TransHead Head { get; set; }
|
||||
|
||||
public TransBody Body { get; set; }
|
||||
|
||||
public TransResult TransResultInfo { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public byte[] Data { get; set; }
|
||||
}
|
||||
}
|
||||
19
94_wai/Getf.Service.Transfer.Core/Entities/TransResult.cs
Normal file
19
94_wai/Getf.Service.Transfer.Core/Entities/TransResult.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Getf.Service.Transfer.Core
|
||||
{
|
||||
public class TransResult
|
||||
{
|
||||
public string Key { get; set; }
|
||||
|
||||
public int Code { get; set; }
|
||||
|
||||
public string Message { get; set; }
|
||||
|
||||
public string Data { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
<?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>{600FA1A3-1330-4A26-8686-29DFEA0CE768}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Getf.Service.Transfer.Core</RootNamespace>
|
||||
<AssemblyName>Getf.Service.Transfer.Core</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</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="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.12.0.1\lib\net40\Newtonsoft.Json.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\net40\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\net40\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\net40\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\net40\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\net40\SuperSocket.SocketService.exe</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AccountService.cs" />
|
||||
<Compile Include="Entities\AccountInfo.cs" />
|
||||
<Compile Include="Entities\ClientInfo.cs" />
|
||||
<Compile Include="Helpers\Md5Helper.cs" />
|
||||
<Compile Include="Helpers\TypeHelper.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ReceiveFilter.cs" />
|
||||
<Compile Include="Entities\TransBody.cs" />
|
||||
<Compile Include="Entities\TransHead.cs" />
|
||||
<Compile Include="Entities\TransInfo.cs" />
|
||||
<Compile Include="Entities\TransResult.cs" />
|
||||
<Compile Include="Server.cs" />
|
||||
<Compile Include="Session.cs" />
|
||||
<Compile Include="Helpers\LogHelper.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Config\log4net.config" />
|
||||
<None Include="Config\log4net.unix.config" />
|
||||
<None Include="packages.config" />
|
||||
<None Include="supersocket.cmd" />
|
||||
<None Include="supersocket.sh" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
13
94_wai/Getf.Service.Transfer.Core/Helpers/LogHelper.cs
Normal file
13
94_wai/Getf.Service.Transfer.Core/Helpers/LogHelper.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using log4net;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Getf.Service.Transfer.Core.Utils
|
||||
{
|
||||
public static class LogHelper
|
||||
{
|
||||
//private static ILog Log=log4net.Core.LoggerManager.GetLogger("")
|
||||
}
|
||||
}
|
||||
25
94_wai/Getf.Service.Transfer.Core/Helpers/Md5Helper.cs
Normal file
25
94_wai/Getf.Service.Transfer.Core/Helpers/Md5Helper.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
||||
namespace Getf.Service.Transfer.Core.Helpers
|
||||
{
|
||||
public static class Md5Helper
|
||||
{
|
||||
public static string Md5(string str)
|
||||
{
|
||||
MD5 md5 = MD5.Create();
|
||||
byte[] data = Encoding.UTF8.GetBytes(str);
|
||||
data = md5.ComputeHash(data);
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (int i = 0; i < data.Length; i++)
|
||||
{
|
||||
sb.Append(data[i].ToString("x2"));
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
23
94_wai/Getf.Service.Transfer.Core/Helpers/TypeHelper.cs
Normal file
23
94_wai/Getf.Service.Transfer.Core/Helpers/TypeHelper.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Getf.Service.Transfer.Core.Helpers
|
||||
{
|
||||
public static class TypeHelper
|
||||
{
|
||||
public static DateTime ToDateTime(long timeStamp)
|
||||
{
|
||||
System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1)); // 当地时区
|
||||
DateTime dt = startTime.AddSeconds(timeStamp);
|
||||
return dt;
|
||||
}
|
||||
public static long GetTimeStamp()
|
||||
{
|
||||
System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1, 0, 0, 0, 0));
|
||||
long t = (long)(DateTime.Now - startTime).TotalSeconds;
|
||||
return t;
|
||||
}
|
||||
}
|
||||
}
|
||||
36
94_wai/Getf.Service.Transfer.Core/Properties/AssemblyInfo.cs
Normal file
36
94_wai/Getf.Service.Transfer.Core/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("Getf.Service.Transfer.Core")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Hewlett-Packard")]
|
||||
[assembly: AssemblyProduct("Getf.Service.Transfer.Core")]
|
||||
[assembly: AssemblyCopyright("Copyright © Hewlett-Packard 2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("600fa1a3-1330-4a26-8686-29dfea0ce768")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
35
94_wai/Getf.Service.Transfer.Core/ReceiveFilter.cs
Normal file
35
94_wai/Getf.Service.Transfer.Core/ReceiveFilter.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using Getf.Service.Transfer.Core.Entities;
|
||||
using Newtonsoft.Json;
|
||||
using SuperSocket.Facility.Protocol;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Getf.Service.Transfer.Core
|
||||
{
|
||||
public class ReceiveFilter : FixedHeaderReceiveFilter<TransInfo>
|
||||
{
|
||||
public ReceiveFilter() : base(10)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected override int GetBodyLengthFromHeader(byte[] header, int offset, int length)
|
||||
{
|
||||
var len = BitConverter.ToInt32(header, offset + 2) + BitConverter.ToInt32(header, offset + 6);
|
||||
return len;
|
||||
}
|
||||
|
||||
protected override TransInfo ResolveRequestInfo(ArraySegment<byte> header, byte[] bodyBuffer, int offset, int length)
|
||||
{
|
||||
var strLength = BitConverter.ToInt32(header.Array, header.Offset + 2);
|
||||
var dataLength = BitConverter.ToInt32(header.Array, header.Offset + 6);
|
||||
|
||||
var json = Encoding.UTF8.GetString(bodyBuffer.Skip(offset).Take(strLength).ToArray());
|
||||
var r = JsonConvert.DeserializeObject<TransInfo>(json);
|
||||
r.Data = bodyBuffer.Skip(offset + strLength).Take(dataLength).ToArray();
|
||||
return r;
|
||||
}
|
||||
}
|
||||
}
|
||||
279
94_wai/Getf.Service.Transfer.Core/Server.cs
Normal file
279
94_wai/Getf.Service.Transfer.Core/Server.cs
Normal file
@@ -0,0 +1,279 @@
|
||||
using Getf.Service.Transfer.Core.Entities;
|
||||
using Getf.Service.Transfer.Core.Helpers;
|
||||
using SuperSocket.SocketBase;
|
||||
using SuperSocket.SocketBase.Config;
|
||||
using SuperSocket.SocketBase.Protocol;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
|
||||
namespace Getf.Service.Transfer.Core
|
||||
{
|
||||
public class Server : AppServer<Session, TransInfo>
|
||||
{
|
||||
private static object _LockObj = new object();
|
||||
private readonly static Dictionary<string, ClientInfo> WaitSessions = new Dictionary<string, ClientInfo>();
|
||||
private readonly static Dictionary<string, ClientInfo> RegisterClients = new Dictionary<string, ClientInfo>();
|
||||
private readonly AccountInfo[] AccountInfos;
|
||||
|
||||
|
||||
public Server()
|
||||
: base(new DefaultReceiveFilterFactory<ReceiveFilter, TransInfo>()) //使用默认的接受过滤器工厂 (DefaultReceiveFilterFactory)
|
||||
{
|
||||
AccountInfos = new AccountService().GetData();
|
||||
}
|
||||
|
||||
protected override void OnSessionClosed(Session session, CloseReason reason)
|
||||
{
|
||||
Logger.Debug("SessionClosed" + session.SessionID + reason.ToString());
|
||||
lock (_LockObj)
|
||||
{
|
||||
var first = RegisterClients.FirstOrDefault(m => m.Value.Session == session);
|
||||
if (first.Key != null)
|
||||
{
|
||||
RegisterClients.Remove(first.Key);
|
||||
}
|
||||
|
||||
first = WaitSessions.FirstOrDefault(m => m.Value.Session == session);
|
||||
if (first.Key != null)
|
||||
{
|
||||
WaitSessions.Remove(first.Key);
|
||||
}
|
||||
}
|
||||
base.OnSessionClosed(session, reason);
|
||||
}
|
||||
|
||||
protected override void ExecuteCommand(Session session, TransInfo transInfo)
|
||||
{
|
||||
if (!Validate(transInfo, out TransResult transResult, out AccountInfo accountInfo))
|
||||
{
|
||||
SendResultInfo(session, new TransInfo() { TransResultInfo = transResult });
|
||||
return;
|
||||
}
|
||||
|
||||
var type = transInfo.Head.Type;
|
||||
switch (type)
|
||||
{
|
||||
case 1:
|
||||
HandlerRegister(session, transInfo, accountInfo);
|
||||
break;
|
||||
case 2:
|
||||
HandlerRequest(session, transInfo, accountInfo);
|
||||
break;
|
||||
case 3:
|
||||
HandlerResponse(session, transInfo, accountInfo);
|
||||
break;
|
||||
case 4:
|
||||
HandlerHeart(session, transInfo, accountInfo);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 处理注册事件
|
||||
/// </summary>
|
||||
/// <param name="srcSession"></param>
|
||||
/// <param name="requestInfo"></param>
|
||||
private void HandlerRegister(Session srcSession, TransInfo requestInfo, AccountInfo srcAccInfo)
|
||||
{
|
||||
var appID = requestInfo.Head.AppID;
|
||||
lock (_LockObj)
|
||||
{
|
||||
if (RegisterClients.ContainsKey(appID))
|
||||
{
|
||||
RegisterClients[appID].Session = srcSession;
|
||||
RegisterClients[appID].AccountInfo = srcAccInfo;
|
||||
}
|
||||
else
|
||||
{
|
||||
RegisterClients.Add(appID, new ClientInfo()
|
||||
{
|
||||
Session = srcSession,
|
||||
AccountInfo = srcAccInfo
|
||||
});
|
||||
}
|
||||
}
|
||||
Logger.Debug(srcSession.SessionID + "注册成功" + srcAccInfo.AppID);
|
||||
SendResultInfo(srcSession, "注册成功!", 0, srcAccInfo);
|
||||
|
||||
|
||||
/*if (RegisterClients.ContainsKey(appID))
|
||||
{
|
||||
SendResultInfo(srcSession, "应用名【" + appID + "】已被注册!", -210, srcAccInfo);
|
||||
return;
|
||||
}
|
||||
RegisterClients.Add(appID, new ClientInfo()
|
||||
{
|
||||
Session = srcSession,
|
||||
AccountInfo = srcAccInfo
|
||||
});
|
||||
SendResultInfo(srcSession, "注册成功!", 0, srcAccInfo);*/
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 处理请求事件
|
||||
/// </summary>
|
||||
/// <param name="srcSession"></param>
|
||||
/// <param name="transInfo"></param>
|
||||
private void HandlerRequest(Session srcSession, TransInfo transInfo, AccountInfo srcAccInfo)
|
||||
{
|
||||
if (transInfo.Body == null)
|
||||
{
|
||||
SendResultInfo(srcSession, "Body信息是必须的", -201, srcAccInfo);
|
||||
return;
|
||||
}
|
||||
|
||||
var targetAppID = transInfo.Body.TargetAppID;
|
||||
lock (_LockObj)
|
||||
{
|
||||
if (!RegisterClients.ContainsKey(targetAppID))
|
||||
{
|
||||
SendResultInfo(srcSession, "远程客户端未注册链接!", -310, srcAccInfo);
|
||||
return;
|
||||
}
|
||||
|
||||
transInfo.Body.Key = Guid.NewGuid().ToString();
|
||||
WaitSessions.Add(transInfo.Body.Key, new ClientInfo()
|
||||
{
|
||||
Session = srcSession,
|
||||
AccountInfo = srcAccInfo
|
||||
});
|
||||
}
|
||||
var target = RegisterClients[targetAppID];
|
||||
SendRequest(target.Session, transInfo, target.AccountInfo);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 处理响应事件
|
||||
/// </summary>
|
||||
/// <param name="srcSession"></param>
|
||||
/// <param name="transInfo"></param>
|
||||
private void HandlerResponse(Session srcSession, TransInfo transInfo, AccountInfo srcAccInfo)
|
||||
{
|
||||
if (transInfo.Body == null)
|
||||
{
|
||||
SendResultInfo(srcSession, "Body信息是必须的", -201, srcAccInfo);
|
||||
return;
|
||||
}
|
||||
lock (_LockObj)
|
||||
{
|
||||
var key = transInfo.Body.Key;
|
||||
if (!WaitSessions.ContainsKey(key))
|
||||
{
|
||||
SendResultInfo(srcSession, "请求客户端已断开", -110, srcAccInfo);
|
||||
return;
|
||||
}
|
||||
var requestClient = WaitSessions[key];
|
||||
SendResultInfo(requestClient.Session, transInfo, requestClient.AccountInfo);
|
||||
WaitSessions.Remove(key);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 处理心跳包
|
||||
/// </summary>
|
||||
/// <param name="srcSession"></param>
|
||||
/// <param name="requestInfo"></param>
|
||||
/// <param name="srcAccInfo"></param>
|
||||
private void HandlerHeart(Session srcSession, TransInfo requestInfo, AccountInfo srcAccInfo)
|
||||
{
|
||||
srcSession.SendHeart();
|
||||
}
|
||||
|
||||
private void SendRequest(Session session, TransInfo transInfo, AccountInfo accountInfo = null)
|
||||
{
|
||||
var r = new TransInfo()
|
||||
{
|
||||
Head = GetHead(transInfo.Head.Type, accountInfo),
|
||||
Body = transInfo.Body,
|
||||
Data = transInfo.Data
|
||||
};
|
||||
session.Send(r);
|
||||
}
|
||||
|
||||
private void SendResultInfo(Session session, string msg, int code, AccountInfo accountInfo = null)
|
||||
{
|
||||
var transResult = new TransResult()
|
||||
{
|
||||
Code = code,
|
||||
Message = msg
|
||||
};
|
||||
SendResultInfo(session, new TransInfo() { TransResultInfo = transResult }, accountInfo);
|
||||
}
|
||||
|
||||
private void SendResultInfo(Session session, TransInfo transResult, AccountInfo accountInfo = null)
|
||||
{
|
||||
var r = new TransInfo()
|
||||
{
|
||||
Head = GetHead(3, accountInfo),
|
||||
TransResultInfo = transResult.TransResultInfo,
|
||||
Data = transResult.Data
|
||||
};
|
||||
session.Send(r);
|
||||
}
|
||||
|
||||
private TransHead GetHead(int type, AccountInfo accountInfo = null)
|
||||
{
|
||||
var timeStamp = TypeHelper.GetTimeStamp();
|
||||
var r = new TransHead()
|
||||
{
|
||||
ServiceSecret = accountInfo?.ServiceSecret,
|
||||
TimeStamp = timeStamp,
|
||||
Type = type,
|
||||
Sign = GetSign(timeStamp, accountInfo?.Key)
|
||||
};
|
||||
return r;
|
||||
}
|
||||
|
||||
private bool Validate(TransInfo transInfo, out TransResult transResult, out AccountInfo accountInfo)
|
||||
{
|
||||
var head = transInfo.Head;
|
||||
accountInfo = AccountInfos.FirstOrDefault(m => m.AppID == head.AppID && m.AppSecret == head.AppSecret);
|
||||
transResult = new TransResult();
|
||||
if (transInfo.Head == null)
|
||||
{
|
||||
transResult.Message = "头部信息不全";
|
||||
transResult.Code = -201;
|
||||
return false;
|
||||
}
|
||||
if (accountInfo == null)
|
||||
{
|
||||
transResult.Message = "身份认证失败";
|
||||
transResult.Code = -202;
|
||||
return false;
|
||||
}
|
||||
|
||||
var key = accountInfo.Key;
|
||||
var timeStamp = head.TimeStamp;
|
||||
|
||||
var time = TypeHelper.ToDateTime(timeStamp);
|
||||
if (Math.Abs((DateTime.Now - time).Hours) > 1)
|
||||
{
|
||||
transResult.Message = "签名失效";
|
||||
transResult.Code = -203;
|
||||
return false;
|
||||
}
|
||||
|
||||
var sign = head.Sign;
|
||||
var sign1 = GetSign(timeStamp, key);
|
||||
if (!sign1.Equals(sign, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
transResult.Message = "签名错误";
|
||||
transResult.Code = -204;
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private string GetSign(long timeStamp, string key)
|
||||
{
|
||||
if (key == null) return null;
|
||||
var r = Md5Helper.Md5(timeStamp + key);
|
||||
return r;
|
||||
}
|
||||
}
|
||||
}
|
||||
81
94_wai/Getf.Service.Transfer.Core/Session.cs
Normal file
81
94_wai/Getf.Service.Transfer.Core/Session.cs
Normal file
@@ -0,0 +1,81 @@
|
||||
using Getf.Service.Transfer.Core.Entities;
|
||||
using Newtonsoft.Json;
|
||||
using SuperSocket.SocketBase;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Getf.Service.Transfer.Core
|
||||
{
|
||||
public class Session : AppSession<Session, TransInfo>
|
||||
{
|
||||
static ArraySegment<byte> Heart = new ArraySegment<byte>(new byte[] { 0x40, 0x40, 0, 0, 0, 0, 0, 0, 0, 0 });
|
||||
protected override int GetMaxRequestLength()
|
||||
{
|
||||
return 100 * 1024 * 1024;
|
||||
}
|
||||
|
||||
protected override void OnSessionStarted()
|
||||
{
|
||||
base.OnSessionStarted();
|
||||
Logger.Debug("SessionStarted:" + this.SessionID);
|
||||
}
|
||||
|
||||
public void SendHeart()
|
||||
{
|
||||
base.Send(Heart);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 异常捕捉
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void HandleException(Exception e)
|
||||
{
|
||||
Logger.Error(e.Message, e);
|
||||
base.HandleException(e);
|
||||
}
|
||||
|
||||
|
||||
protected override void HandleUnknownRequest(TransInfo requestInfo)
|
||||
{
|
||||
Logger.Warn("UnknownRequest" + JsonConvert.SerializeObject(requestInfo));
|
||||
base.HandleUnknownRequest(requestInfo);
|
||||
}
|
||||
|
||||
public void Send(object entity)
|
||||
{
|
||||
List<byte> bufferHead = new List<byte>();
|
||||
bufferHead.AddRange(Encoding.UTF8.GetBytes("@@"));
|
||||
List<byte> bufferBody = new List<byte>();
|
||||
//bufferBody.AddRange(new Guid(this.Key).ToByteArray());
|
||||
var json = JsonConvert.SerializeObject(entity);
|
||||
bufferBody.AddRange(Encoding.UTF8.GetBytes(json));
|
||||
bufferHead.AddRange(BitConverter.GetBytes(bufferBody.Count));
|
||||
bufferHead.AddRange(BitConverter.GetBytes(0));
|
||||
bufferHead.AddRange(bufferBody);
|
||||
ArraySegment<byte> arraySegment = new ArraySegment<byte>(bufferHead.ToArray());
|
||||
base.Send(arraySegment);
|
||||
}
|
||||
|
||||
public void Send(TransInfo transInfo)
|
||||
{
|
||||
List<byte> bufferHead = new List<byte>();
|
||||
bufferHead.AddRange(Encoding.UTF8.GetBytes("@@"));
|
||||
List<byte> bufferBody = new List<byte>();
|
||||
//bufferBody.AddRange(new Guid(this.Key).ToByteArray());
|
||||
var json = JsonConvert.SerializeObject(transInfo);
|
||||
bufferBody.AddRange(Encoding.UTF8.GetBytes(json));
|
||||
bufferHead.AddRange(BitConverter.GetBytes(bufferBody.Count));
|
||||
bufferHead.AddRange(BitConverter.GetBytes(transInfo.Data == null ? 0 : transInfo.Data.Length));
|
||||
bufferHead.AddRange(bufferBody);
|
||||
if (transInfo.Data != null)
|
||||
{
|
||||
bufferHead.AddRange(transInfo.Data);
|
||||
}
|
||||
ArraySegment<byte> arraySegment = new ArraySegment<byte>(bufferHead.ToArray());
|
||||
base.Send(arraySegment);
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
BIN
94_wai/Getf.Service.Transfer.Core/bin/Debug/Newtonsoft.Json.dll
Normal file
BIN
94_wai/Getf.Service.Transfer.Core/bin/Debug/Newtonsoft.Json.dll
Normal file
Binary file not shown.
BIN
94_wai/Getf.Service.Transfer.Core/bin/Debug/Newtonsoft.Json.pdb
Normal file
BIN
94_wai/Getf.Service.Transfer.Core/bin/Debug/Newtonsoft.Json.pdb
Normal file
Binary file not shown.
9505
94_wai/Getf.Service.Transfer.Core/bin/Debug/Newtonsoft.Json.xml
Normal file
9505
94_wai/Getf.Service.Transfer.Core/bin/Debug/Newtonsoft.Json.xml
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
1346
94_wai/Getf.Service.Transfer.Core/bin/Debug/SuperSocket.Common.xml
Normal file
1346
94_wai/Getf.Service.Transfer.Core/bin/Debug/SuperSocket.Common.xml
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,601 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>SuperSocket.Facility</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<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>
|
||||
<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>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
BIN
94_wai/Getf.Service.Transfer.Core/bin/Debug/log4net.dll
Normal file
BIN
94_wai/Getf.Service.Transfer.Core/bin/Debug/log4net.dll
Normal file
Binary file not shown.
31814
94_wai/Getf.Service.Transfer.Core/bin/Debug/log4net.xml
Normal file
31814
94_wai/Getf.Service.Transfer.Core/bin/Debug/log4net.xml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
3a9a1cddb4334c3da057879df97d03232a4fb72c
|
||||
@@ -0,0 +1,21 @@
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\Getf.Service.Transfer.Core.dll
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\Getf.Service.Transfer.Core.pdb
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\log4net.dll
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\Newtonsoft.Json.dll
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\SuperSocket.Common.dll
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\SuperSocket.Facility.dll
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\SuperSocket.SocketBase.dll
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\SuperSocket.SocketEngine.dll
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\SuperSocket.SocketService.exe
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\log4net.xml
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\Newtonsoft.Json.pdb
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\Newtonsoft.Json.xml
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\SuperSocket.Common.xml
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\SuperSocket.Facility.xml
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\SuperSocket.SocketBase.xml
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\bin\Debug\SuperSocket.SocketEngine.xml
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\obj\Debug\Getf.Service.Transfer.Core.csproj.AssemblyReference.cache
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\obj\Debug\Getf.Service.Transfer.Core.csproj.CoreCompileInputs.cache
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\obj\Debug\Getf.Service.Transfer.Core.csproj.CopyComplete
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\obj\Debug\Getf.Service.Transfer.Core.dll
|
||||
D:\WORK\C宁波拆迁\transfer\Services\Getf.Service.Transfer\Src\Getf.Service.Transfer.Core\obj\Debug\Getf.Service.Transfer.Core.pdb
|
||||
Binary file not shown.
Binary file not shown.
7
94_wai/Getf.Service.Transfer.Core/packages.config
Normal file
7
94_wai/Getf.Service.Transfer.Core/packages.config
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="log4net" version="2.0.3" targetFramework="net40" />
|
||||
<package id="Newtonsoft.Json" version="12.0.1" targetFramework="net40" />
|
||||
<package id="SuperSocket" version="1.6.6.1" targetFramework="net40" />
|
||||
<package id="SuperSocket.Engine" version="1.6.6.1" targetFramework="net40" />
|
||||
</packages>
|
||||
2
94_wai/Getf.Service.Transfer.Core/supersocket.cmd
Normal file
2
94_wai/Getf.Service.Transfer.Core/supersocket.cmd
Normal file
@@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
SuperSocket.SocketService.exe -c %1 %2
|
||||
2
94_wai/Getf.Service.Transfer.Core/supersocket.sh
Normal file
2
94_wai/Getf.Service.Transfer.Core/supersocket.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
mono SuperSocket.SocketService.exe -c $1 $2
|
||||
33
94_wai/Getf.Service.Transfer.WinService/AccountConfig.xml
Normal file
33
94_wai/Getf.Service.Transfer.WinService/AccountConfig.xml
Normal 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>
|
||||
20
94_wai/Getf.Service.Transfer.WinService/App.config
Normal file
20
94_wai/Getf.Service.Transfer.WinService/App.config
Normal 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>
|
||||
@@ -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".txt"" />
|
||||
<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>
|
||||
<!--< > = <> %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".txt"" />
|
||||
<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>
|
||||
<!--< > = <> %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".txt"" />
|
||||
<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".txt"" />
|
||||
<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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
25
94_wai/Getf.Service.Transfer.WinService/Program.cs
Normal file
25
94_wai/Getf.Service.Transfer.WinService/Program.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
56
94_wai/Getf.Service.Transfer.WinService/ProjectInstaller.Designer.cs
generated
Normal file
56
94_wai/Getf.Service.Transfer.WinService/ProjectInstaller.Designer.cs
generated
Normal 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;
|
||||
}
|
||||
}
|
||||
22
94_wai/Getf.Service.Transfer.WinService/ProjectInstaller.cs
Normal file
22
94_wai/Getf.Service.Transfer.WinService/ProjectInstaller.cs
Normal 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";
|
||||
}
|
||||
}
|
||||
}
|
||||
120
94_wai/Getf.Service.Transfer.WinService/ProjectInstaller.resx
Normal file
120
94_wai/Getf.Service.Transfer.WinService/ProjectInstaller.resx
Normal 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>
|
||||
@@ -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")]
|
||||
37
94_wai/Getf.Service.Transfer.WinService/Service1.Designer.cs
generated
Normal file
37
94_wai/Getf.Service.Transfer.WinService/Service1.Designer.cs
generated
Normal 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
|
||||
}
|
||||
}
|
||||
49
94_wai/Getf.Service.Transfer.WinService/Service1.cs
Normal file
49
94_wai/Getf.Service.Transfer.WinService/Service1.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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".txt"" />
|
||||
<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>
|
||||
<!--< > = <> %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".txt"" />
|
||||
<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>
|
||||
<!--< > = <> %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".txt"" />
|
||||
<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".txt"" />
|
||||
<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>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -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>
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
BIN
94_wai/Getf.Service.Transfer.WinService/bin/Debug/log4net.dll
Normal file
BIN
94_wai/Getf.Service.Transfer.WinService/bin/Debug/log4net.dll
Normal file
Binary file not shown.
31814
94_wai/Getf.Service.Transfer.WinService/bin/Debug/log4net.xml
Normal file
31814
94_wai/Getf.Service.Transfer.WinService/bin/Debug/log4net.xml
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -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")]
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
22b25b75906f091bd58cf78dfc046231e64c2d28
|
||||
@@ -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
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
6
94_wai/Getf.Service.Transfer.WinService/packages.config
Normal file
6
94_wai/Getf.Service.Transfer.WinService/packages.config
Normal 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>
|
||||
2
94_wai/Getf.Service.Transfer.WinService/supersocket.cmd
Normal file
2
94_wai/Getf.Service.Transfer.WinService/supersocket.cmd
Normal file
@@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
SuperSocket.SocketService.exe -c %1 %2
|
||||
2
94_wai/Getf.Service.Transfer.WinService/supersocket.sh
Normal file
2
94_wai/Getf.Service.Transfer.WinService/supersocket.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
mono SuperSocket.SocketService.exe -c $1 $2
|
||||
37
94_wai/Getf.Service.Transfer.sln
Normal file
37
94_wai/Getf.Service.Transfer.sln
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.28307.106
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Getf.Service.Transfer", "Getf.Service.Transfer\Getf.Service.Transfer.csproj", "{A7DC2DB3-DFA6-4214-9E38-7A0AF26E75FB}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Getf.Service.Transfer.Core", "Getf.Service.Transfer.Core\Getf.Service.Transfer.Core.csproj", "{600FA1A3-1330-4A26-8686-29DFEA0CE768}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Getf.Service.Transfer.WinService", "Getf.Service.Transfer.WinService\Getf.Service.Transfer.WinService.csproj", "{90BEB49E-D0BF-4B6E-A5AA-91DECA3E7CBF}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{A7DC2DB3-DFA6-4214-9E38-7A0AF26E75FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{A7DC2DB3-DFA6-4214-9E38-7A0AF26E75FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A7DC2DB3-DFA6-4214-9E38-7A0AF26E75FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A7DC2DB3-DFA6-4214-9E38-7A0AF26E75FB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{600FA1A3-1330-4A26-8686-29DFEA0CE768}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{600FA1A3-1330-4A26-8686-29DFEA0CE768}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{600FA1A3-1330-4A26-8686-29DFEA0CE768}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{600FA1A3-1330-4A26-8686-29DFEA0CE768}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{90BEB49E-D0BF-4B6E-A5AA-91DECA3E7CBF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{90BEB49E-D0BF-4B6E-A5AA-91DECA3E7CBF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{90BEB49E-D0BF-4B6E-A5AA-91DECA3E7CBF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{90BEB49E-D0BF-4B6E-A5AA-91DECA3E7CBF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {5B53133F-62C7-4BF1-9B39-BCD0AF5E1346}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
33
94_wai/Getf.Service.Transfer/AccountConfig.xml
Normal file
33
94_wai/Getf.Service.Transfer/AccountConfig.xml
Normal 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>127.0.0.1</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>
|
||||
81
94_wai/Getf.Service.Transfer/App.config
Normal file
81
94_wai/Getf.Service.Transfer/App.config
Normal file
@@ -0,0 +1,81 @@
|
||||
<?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>
|
||||
<appSettings>
|
||||
<add key="log4net.Internal.Debug" value="true "/>
|
||||
<add key="AccountConfigPath" value="AccountConfig.xml" />
|
||||
<add key="Port" value="8002" />
|
||||
</appSettings>
|
||||
<superSocket>
|
||||
<servers>
|
||||
<!--主要是这个-->
|
||||
<server name="Getf.Service.Transfer" serverType="Getf.Service.Transfer.Core.Server, Getf.Service.Transfer.Core" port="8002">
|
||||
</server>
|
||||
</servers>
|
||||
</superSocket>
|
||||
|
||||
<log4net>
|
||||
<!--<logger name="logerror">
|
||||
<level value="ERROR" />
|
||||
<appender-ref ref="ErrorAppender" />
|
||||
</logger>-->
|
||||
<logger name="logall">
|
||||
<level value="ALL" />
|
||||
<appender-ref ref="ErrorAppender"/>
|
||||
<appender-ref ref="InfoAppender"/>
|
||||
<appender-ref ref="DebugAppender"/>
|
||||
</logger>
|
||||
<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".txt"" />
|
||||
<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>
|
||||
<!--< > = <> %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".txt"" />
|
||||
<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".txt"" />
|
||||
<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>
|
||||
</configuration>
|
||||
86
94_wai/Getf.Service.Transfer/Config/log4net.config
Normal file
86
94_wai/Getf.Service.Transfer/Config/log4net.config
Normal 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".txt"" />
|
||||
<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>
|
||||
<!--< > = <> %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".txt"" />
|
||||
<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>
|
||||
<!--< > = <> %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".txt"" />
|
||||
<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".txt"" />
|
||||
<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>
|
||||
73
94_wai/Getf.Service.Transfer/Config/log4net.unix.config
Normal file
73
94_wai/Getf.Service.Transfer/Config/log4net.unix.config
Normal 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>
|
||||
87
94_wai/Getf.Service.Transfer/Getf.Service.Transfer.csproj
Normal file
87
94_wai/Getf.Service.Transfer/Getf.Service.Transfer.csproj
Normal file
@@ -0,0 +1,87 @@
|
||||
<?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>{A7DC2DB3-DFA6-4214-9E38-7A0AF26E75FB}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>Getf.Service.Transfer</RootNamespace>
|
||||
<AssemblyName>Getf.Service.Transfer</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
</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>
|
||||
</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>
|
||||
</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\net40\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\net40\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\net40\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\net40\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\net40\SuperSocket.SocketService.exe</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</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>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="Config\log4net.config">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="Config\log4net.unix.config" />
|
||||
<None Include="packages.config" />
|
||||
<None Include="supersocket.cmd" />
|
||||
<None Include="supersocket.sh" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="AccountConfig.xml" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
26
94_wai/Getf.Service.Transfer/Program.cs
Normal file
26
94_wai/Getf.Service.Transfer/Program.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Getf.Service.Transfer.Core;
|
||||
using SuperSocket.SocketBase;
|
||||
using SuperSocket.SocketEngine;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
||||
namespace Getf.Service.Transfer
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var boostrap = BootstrapFactory.CreateBootstrap();
|
||||
boostrap.Initialize();
|
||||
boostrap.Start();
|
||||
/*Server server = new Server();
|
||||
server.Setup(8888);
|
||||
server.LogFactory.GetLog("logall");
|
||||
server.Start();*/
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
36
94_wai/Getf.Service.Transfer/Properties/AssemblyInfo.cs
Normal file
36
94_wai/Getf.Service.Transfer/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("Getf.Service.Transfer")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Hewlett-Packard")]
|
||||
[assembly: AssemblyProduct("Getf.Service.Transfer")]
|
||||
[assembly: AssemblyCopyright("Copyright © Hewlett-Packard 2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("a7dc2db3-dfa6-4214-9e38-7a0af26e75fb")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user