Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
guo450212436
et
提交
fc8f1052
E
et
项目概览
guo450212436
/
et
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
et
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
fc8f1052
编写于
12月 02, 2017
作者:
T
tanghai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TBuffer由于KCP也用到了,所以抽出来共用,改名成CircularBuffer
上级
ca3b834d
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
12 addition
and
12 deletion
+12
-12
Client-Server.sln.DotSettings.user
Client-Server.sln.DotSettings.user
+1
-1
Server/Base/Server.Base.csproj
Server/Base/Server.Base.csproj
+1
-1
Unity/Assets/Scripts/Base/Network/Circularbuffer.cs
Unity/Assets/Scripts/Base/Network/Circularbuffer.cs
+3
-3
Unity/Assets/Scripts/Base/Network/Circularbuffer.cs.meta
Unity/Assets/Scripts/Base/Network/Circularbuffer.cs.meta
+0
-0
Unity/Assets/Scripts/Base/Network/KNet/KChannel.cs
Unity/Assets/Scripts/Base/Network/KNet/KChannel.cs
+1
-1
Unity/Assets/Scripts/Base/Network/TNet/PacketParser.cs
Unity/Assets/Scripts/Base/Network/TNet/PacketParser.cs
+2
-2
Unity/Assets/Scripts/Base/Network/TNet/TChannel.cs
Unity/Assets/Scripts/Base/Network/TNet/TChannel.cs
+2
-2
Unity/Assets/Scripts/Component/TimerComponent.cs
Unity/Assets/Scripts/Component/TimerComponent.cs
+1
-1
Unity/Unity.csproj
Unity/Unity.csproj
+1
-1
未找到文件。
Client-Server.sln.DotSettings.user
浏览文件 @
fc8f1052
...
...
@@ -9,7 +9,7 @@
<s:String x:Key="/Default/CodeInspection/Highlighting/AnalysisEnabled/@EntryValue">VISIBLE_FILES</s:String>
<s:String x:Key="/Default/CodeStyle/CodeCleanup/Profiles/=Unity/@EntryIndexedValue"><?xml version="1.0" encoding="utf-16"?><Profile name="Unity"><CSArrangeThisQualifier>True</CSArrangeThisQualifier><CSRemoveCodeRedundancies>True</CSRemoveCodeRedundancies><CSMakeFieldReadonly>True</CSMakeFieldReadonly><CSUseVar><BehavourStyle>DISABLED</BehavourStyle><LocalVariableStyle>IMPLICIT_WHEN_INITIALIZER_HAS_TYPE</LocalVariableStyle><ForeachVariableStyle>IMPLICIT_EXCEPT_SIMPLE_TYPES</ForeachVariableStyle></CSUseVar><CSOptimizeUsings><OptimizeUsings>True</OptimizeUsings><EmbraceInRegion>False</EmbraceInRegion><RegionName></RegionName></CSOptimizeUsings><CSShortenReferences>True</CSShortenReferences><CSReformatCode>True</CSReformatCode><CSMakeAutoPropertyGetOnly>True</CSMakeAutoPropertyGetOnly><CSUseAutoProperty>True</CSUseAutoProperty><RemoveCodeRedundancies>True</RemoveCodeRedundancies><CSCodeStyleAttributes ArrangeTypeAccessModifier="True" ArrangeTypeMemberAccessModifier="True" SortModifiers="True" RemoveRedundantParentheses="True" AddMissingParentheses="True" ArrangeBraces="True" ArrangeAttributes="True" ArrangeArgumentsStyle="True" ArrangeCodeBodyStyle="True" /></Profile></s:String>
<s:String x:Key="/Default/CodeStyle/CodeCleanup/RecentlyUsedProfile/@EntryValue">Unity</s:String>
<s:String x:Key="/Default/Housekeeping/Layout/DialogWindows/RefactoringWizardWindow/Location/@EntryValue">247,-
4
</s:String>
<s:String x:Key="/Default/Housekeeping/Layout/DialogWindows/RefactoringWizardWindow/Location/@EntryValue">247,-
23
</s:String>
<s:Int64 x:Key="/Default/Environment/SearchAndNavigation/DefaultOccurrencesGroupingIndex/@EntryValue">0</s:Int64>
<s:String x:Key="/Default/Profiling/Configurations/=1/@EntryIndexedValue"><data><HostParameters type="LocalHostParameters" /><Argument type="StandaloneArgument"><Arguments IsNull="False"></Arguments><FileName IsNull="False"></FileName><WorkingDirectory IsNull="False"></WorkingDirectory><Scope><ProcessFilters /></Scope></Argument><Info type="TimelineInfo" /><HostOptions type="HostOptions"><HostTempPath IsNull="False"></HostTempPath></HostOptions></data></s:String>
</wpf:ResourceDictionary>
\ No newline at end of file
Server/Base/Server.Base.csproj
浏览文件 @
fc8f1052
...
...
@@ -35,12 +35,12 @@
<Compile Include="..\..\Unity\Assets\Scripts\Base\MultiMap.cs" Link="MultiMap.cs" />
<Compile Include="..\..\Unity\Assets\Scripts\Base\Network\AChannel.cs" Link="Network\AChannel.cs" />
<Compile Include="..\..\Unity\Assets\Scripts\Base\Network\AService.cs" Link="Network\AService.cs" />
<Compile Include="..\..\Unity\Assets\Scripts\Base\Network\Circularbuffer.cs" Link="Network\Circularbuffer.cs" />
<Compile Include="..\..\Unity\Assets\Scripts\Base\Network\KNet\KChannel.cs" Link="Network\KNet\KChannel.cs" />
<Compile Include="..\..\Unity\Assets\Scripts\Base\Network\KNet\Kcp.cs" Link="Network\KNet\Kcp.cs" />
<Compile Include="..\..\Unity\Assets\Scripts\Base\Network\KNet\KService.cs" Link="Network\KNet\KService.cs" />
<Compile Include="..\..\Unity\Assets\Scripts\Base\Network\NetworkHelper.cs" Link="Network\NetworkHelper.cs" />
<Compile Include="..\..\Unity\Assets\Scripts\Base\Network\TNet\PacketParser.cs" Link="Network\TNet\PacketParser.cs" />
<Compile Include="..\..\Unity\Assets\Scripts\Base\Network\TNet\TBuffer.cs" Link="Network\TNet\TBuffer.cs" />
<Compile Include="..\..\Unity\Assets\Scripts\Base\Network\TNet\TChannel.cs" Link="Network\TNet\TChannel.cs" />
<Compile Include="..\..\Unity\Assets\Scripts\Base\Network\TNet\TService.cs" Link="Network\TNet\TService.cs" />
<Compile Include="..\..\Unity\Assets\Scripts\Base\Network\UNet\Library.cs" Link="Network\UNet\Library.cs" />
...
...
Unity/Assets/Scripts/Base/Network/
TNet/TB
uffer.cs
→
Unity/Assets/Scripts/Base/Network/
Circularb
uffer.cs
浏览文件 @
fc8f1052
...
...
@@ -4,7 +4,7 @@ using System.Linq;
namespace
Model
{
public
class
TB
uffer
public
class
Circularb
uffer
{
public
int
ChunkSize
=
8192
;
...
...
@@ -16,12 +16,12 @@ namespace Model
public
int
FirstIndex
{
get
;
set
;
}
public
TB
uffer
()
public
Circularb
uffer
()
{
this
.
AddLast
();
}
public
TB
uffer
(
int
chunkSize
)
public
Circularb
uffer
(
int
chunkSize
)
{
this
.
ChunkSize
=
chunkSize
;
this
.
AddLast
();
...
...
Unity/Assets/Scripts/Base/Network/
TNet/TB
uffer.cs.meta
→
Unity/Assets/Scripts/Base/Network/
Circularb
uffer.cs.meta
浏览文件 @
fc8f1052
文件已移动
Unity/Assets/Scripts/Base/Network/KNet/KChannel.cs
浏览文件 @
fc8f1052
...
...
@@ -13,7 +13,7 @@ namespace Model
private
Kcp
kcp
;
private
readonly
TBuffer
recvBuffer
=
new
TB
uffer
(
8
*
1024
);
private
readonly
Circularbuffer
recvBuffer
=
new
Circularb
uffer
(
8
*
1024
);
private
readonly
Queue
<
byte
[
]>
sendBuffer
=
new
Queue
<
byte
[
]>
();
private
readonly
PacketParser
parser
;
...
...
Unity/Assets/Scripts/Base/Network/TNet/PacketParser.cs
浏览文件 @
fc8f1052
...
...
@@ -28,14 +28,14 @@ namespace Model
internal
class
PacketParser
{
private
readonly
TB
uffer
buffer
;
private
readonly
Circularb
uffer
buffer
;
private
ushort
packetSize
;
private
ParserState
state
;
private
Packet
packet
=
new
Packet
(
8
*
1024
);
private
bool
isOK
;
public
PacketParser
(
TB
uffer
buffer
)
public
PacketParser
(
Circularb
uffer
buffer
)
{
this
.
buffer
=
buffer
;
}
...
...
Unity/Assets/Scripts/Base/Network/TNet/TChannel.cs
浏览文件 @
fc8f1052
...
...
@@ -12,8 +12,8 @@ namespace Model
{
private
readonly
TcpClient
tcpClient
;
private
readonly
TBuffer
recvBuffer
=
new
TB
uffer
();
private
readonly
TBuffer
sendBuffer
=
new
TB
uffer
();
private
readonly
Circularbuffer
recvBuffer
=
new
Circularb
uffer
();
private
readonly
Circularbuffer
sendBuffer
=
new
Circularb
uffer
();
private
bool
isSending
;
private
readonly
PacketParser
parser
;
...
...
Unity/Assets/Scripts/Component/TimerComponent.cs
浏览文件 @
fc8f1052
...
...
@@ -20,7 +20,7 @@ namespace Model
}
}
public
class
TimerComponent
:
Component
,
IUpdate
public
class
TimerComponent
:
Component
{
private
readonly
Dictionary
<
long
,
Timer
>
timers
=
new
Dictionary
<
long
,
Timer
>();
...
...
Unity/Unity.csproj
浏览文件 @
fc8f1052
...
...
@@ -233,7 +233,7 @@
<Compile
Include=
"Assets\Scripts\Base\Network\KNet\KService.cs"
/>
<Compile
Include=
"Assets\Scripts\Base\Network\NetworkHelper.cs"
/>
<Compile
Include=
"Assets\Scripts\Base\Network\TNet\PacketParser.cs"
/>
<Compile
Include=
"Assets\Scripts\Base\Network\
TNet\TB
uffer.cs"
/>
<Compile
Include=
"Assets\Scripts\Base\Network\
Circularb
uffer.cs"
/>
<Compile
Include=
"Assets\Scripts\Base\Network\TNet\TChannel.cs"
/>
<Compile
Include=
"Assets\Scripts\Base\Network\TNet\TService.cs"
/>
<Compile
Include=
"Assets\Scripts\Base\Network\UNet\Library.cs"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录