-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
158 changed files
with
91 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.vs |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-198 Bytes
(97%)
src/HiSocket.Example/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
src/HiSocket.Example/obj/Debug/HiSocket.Example.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6512814e59f56da6d6679d13f950f790cc536cdd | ||
5f19412a13e29ce3d2aca7fc8f8aa74845c283a0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-11.3 KB
(62%)
src/HiSocket.Example/obj/Debug/HiSocket.Example.csprojAssemblyReference.cache
Binary file not shown.
Binary file not shown.
Empty file.
1 change: 1 addition & 0 deletions
1
src/HiSocket.Example/obj/Release/HiSocket.Example.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5f19412a13e29ce3d2aca7fc8f8aa74845c283a0 |
13 changes: 13 additions & 0 deletions
13
src/HiSocket.Example/obj/Release/HiSocket.Example.csproj.FileListAbsolute.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\HiSocket.Example.exe | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\HiSocket.Example.pdb | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\HiFramework.dll | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\HiSocket.dll | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\HiSocket.Message.dll | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\protobuf-net.dll | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\HiSocket.Message.pdb | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\HiSocket.pdb | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example\obj\Release\HiSocket.Example.csprojAssemblyReference.cache | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example\obj\Release\HiSocket.Example.csproj.CoreCompileInputs.cache | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example\obj\Release\HiSocket.Example.csproj.CopyComplete | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example\obj\Release\HiSocket.Example.exe | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example\obj\Release\HiSocket.Example.pdb |
Binary file added
BIN
+35.3 KB
src/HiSocket.Example/obj/Release/HiSocket.Example.csprojAssemblyReference.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="HiFramework" version="1.0.7" targetFramework="net35" /> | ||
<package id="HiFramework.Assert" version="1.0.2" targetFramework="net35" /> | ||
<package id="HiFramework.Core" version="1.0.0" targetFramework="net35" /> | ||
<package id="HiFramework" version="1.0.8" targetFramework="net35" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Documents: https://github.com/hiramtan/HiSocket | ||
* Author: [email protected] | ||
***************************************************************/ | ||
using HiFramework.Core; | ||
using HiFramework; | ||
using HiFramework.Unity; | ||
using HiSocket.Example; | ||
using HiSocket.Tcp; | ||
|
@@ -25,7 +25,7 @@ public class Example : MonoBehaviour | |
// Use this for initialization | ||
void Start() | ||
{ | ||
Center.Init(); | ||
Center.Init(new UnityBinder()); | ||
tick = Center.Get<ITickComponent>(); | ||
Connect(); | ||
} | ||
|
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-512 Bytes
(94%)
src/HiSocket.Example_Unity/bin/Debug/HiFramework.Unity.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
src/HiSocket.Example_Unity/bin/Debug/HiSocket.Example_Unity.exe
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
src/HiSocket.Example_Unity/bin/Debug/HiSocket.Example_Unity.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-198 Bytes
(97%)
src/HiSocket.Example_Unity/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
src/HiSocket.Example_Unity/obj/Debug/HiSocket.Example_Unity.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4f0e9bdfc0bbc9c69411d59fe82c6b598fb59975 | ||
7454c1ec6858c7af89ff38ab11a276d72e55cee2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-10.5 KB
(74%)
src/HiSocket.Example_Unity/obj/Debug/HiSocket.Example_Unity.csprojAssemblyReference.cache
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
src/HiSocket.Example_Unity/obj/Debug/HiSocket.Example_Unity.exe
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
src/HiSocket.Example_Unity/obj/Debug/HiSocket.Example_Unity.pdb
Binary file not shown.
Empty file.
1 change: 1 addition & 0 deletions
1
src/HiSocket.Example_Unity/obj/Release/HiSocket.Example_Unity.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cf45866d8ffcfbad820f0f104d12f4454c5a3295 |
17 changes: 17 additions & 0 deletions
17
src/HiSocket.Example_Unity/obj/Release/HiSocket.Example_Unity.csproj.FileListAbsolute.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.Example_Unity.exe | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.Example_Unity.pdb | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiFramework.dll | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiFramework.Unity.dll | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.dll | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.Example.exe | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.Message.dll | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\UnityEngine.dll | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\protobuf-net.dll | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.Example.pdb | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.Message.pdb | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.pdb | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\obj\Release\HiSocket.Example_Unity.csprojAssemblyReference.cache | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\obj\Release\HiSocket.Example_Unity.csproj.CoreCompileInputs.cache | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\obj\Release\HiSocket.Example_Unity.csproj.CopyComplete | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\obj\Release\HiSocket.Example_Unity.exe | ||
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\obj\Release\HiSocket.Example_Unity.pdb |
Binary file added
BIN
+48.2 KB
src/HiSocket.Example_Unity/obj/Release/HiSocket.Example_Unity.csprojAssemblyReference.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="HiFramework" version="1.0.7" targetFramework="net35" /> | ||
<package id="HiFramework.Assert" version="1.0.2" targetFramework="net35" /> | ||
<package id="HiFramework.Core" version="1.0.0" targetFramework="net35" /> | ||
<package id="HiFramework" version="1.0.8" targetFramework="net35" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
// Author: [email protected] | ||
//*************************************************************************** | ||
|
||
using HiFramework.Assert; | ||
using HiFramework; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
|
@@ -32,7 +32,7 @@ public static void Init() | |
/// <param name="onMsg"></param> | ||
public static void Regist(int key, Action<BinaryReader> onMsg) | ||
{ | ||
AssertThat.IsFalse(_msgs.ContainsKey(key), "Already regist this key:" + key); | ||
Assert.IsFalse(_msgs.ContainsKey(key), "Already regist this key:" + key); | ||
_msgs.Add(key, onMsg); | ||
} | ||
|
||
|
@@ -42,7 +42,7 @@ public static void Regist(int key, Action<BinaryReader> onMsg) | |
/// <param name="key"></param> | ||
public static void Unregist(int key) | ||
{ | ||
AssertThat.IsTrue(_msgs.ContainsKey(key)); | ||
Assert.IsTrue(_msgs.ContainsKey(key)); | ||
_msgs.Remove(key); | ||
} | ||
|
||
|
@@ -53,7 +53,7 @@ public static void Unregist(int key) | |
/// <param name="bytes"></param> | ||
public static void Dispatch(int key, byte[] bytes) | ||
{ | ||
AssertThat.IsTrue(_msgs.ContainsKey(key)); | ||
Assert.IsTrue(_msgs.ContainsKey(key)); | ||
var ms = new MemoryStream(bytes); | ||
var reader = new BinaryReader(ms); | ||
_msgs[key](reader); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
// Author: [email protected] | ||
//*************************************************************************** | ||
|
||
using HiFramework.Assert; | ||
using HiFramework; | ||
using HiSocket.Tcp; | ||
using System; | ||
using System.Collections.Generic; | ||
|
@@ -26,7 +26,7 @@ public static class ChannelManager | |
/// <param name="tcpConnection"></param> | ||
public static void AddConnection(string name, ITcpConnection tcpConnection) | ||
{ | ||
AssertThat.IsFalse(_connections.ContainsKey(name)); | ||
Assert.IsFalse(_connections.ContainsKey(name)); | ||
_connections.Add(name, tcpConnection); | ||
} | ||
|
||
|
@@ -36,7 +36,7 @@ public static void AddConnection(string name, ITcpConnection tcpConnection) | |
/// <param name="name"></param> | ||
public static void RemoveConnection(string name) | ||
{ | ||
AssertThat.IsTrue(_connections.ContainsKey(name)); | ||
Assert.IsTrue(_connections.ContainsKey(name)); | ||
_connections.Remove(name); | ||
} | ||
|
||
|
@@ -46,7 +46,7 @@ public static void RemoveConnection(string name) | |
/// <param name="name"></param> | ||
public static void SwitchChannel(string name) | ||
{ | ||
AssertThat.IsTrue(_connections.ContainsKey(name)); | ||
Assert.IsTrue(_connections.ContainsKey(name)); | ||
_tcpConnection = _connections[name]; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
// Description: | ||
// Author: [email protected] | ||
//*************************************************************************** | ||
using HiFramework.Assert; | ||
using HiFramework; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
|
@@ -32,7 +32,7 @@ public static void Init() | |
public static void Regist<T>(Action<T> onMsg) where T : class | ||
{ | ||
var key = typeof(T).FullName; | ||
AssertThat.IsFalse(_msgs.ContainsKey(key), "Already regist this key:" + key); | ||
Assert.IsFalse(_msgs.ContainsKey(key), "Already regist this key:" + key); | ||
var info = new ProtobufMsgRegistInfo<T>(onMsg); | ||
_msgs.Add(key, info); | ||
} | ||
|
@@ -45,7 +45,7 @@ public static void Regist<T>(Action<T> onMsg) where T : class | |
public static void Unregist(Type type) | ||
{ | ||
var key = type.FullName; | ||
AssertThat.IsTrue(_msgs.ContainsKey(key)); | ||
Assert.IsTrue(_msgs.ContainsKey(key)); | ||
_msgs.Remove(key); | ||
} | ||
|
||
|
@@ -56,8 +56,8 @@ public static void Unregist(Type type) | |
/// <param name="bytes"></param> | ||
public static void Dispatch(string key, byte[] bytes) | ||
{ | ||
AssertThat.IsNotNullOrEmpty(key); | ||
AssertThat.IsTrue(_msgs.ContainsKey(key)); | ||
Assert.IsNotNullOrEmpty(key); | ||
Assert.IsTrue(_msgs.ContainsKey(key)); | ||
_msgs[key].OnBytes(bytes); | ||
} | ||
} | ||
|
Binary file modified
BIN
-17 Bytes
(100%)
src/HiSocket.Message/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
src/HiSocket.Message/obj/Debug/HiSocket.Message.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ace1f980209edf9e39567a25a37db543c54daa0c | ||
77e77a93161ec1d350d374584e729077b32f81a6 |
Binary file modified
BIN
-6.24 KB
(71%)
src/HiSocket.Message/obj/Debug/HiSocket.Message.csprojAssemblyReference.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
src/HiSocket.Message/obj/Release/HiSocket.Message.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6b4646c60974c2f57a258c06f1ec5d5cee711327 | ||
77e77a93161ec1d350d374584e729077b32f81a6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-12.4 KB
(69%)
src/HiSocket.Message/obj/Release/HiSocket.Message.csprojAssemblyReference.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="HiFramework.Assert" version="1.0.3" targetFramework="net35" /> | ||
<package id="HiFramework" version="1.0.8" targetFramework="net35" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.