issingle / kcp.net Goto Github PK
View Code? Open in Web Editor NEWkcp的.net移植,基于kcp和kcp-csharp项目
kcp的.net移植,基于kcp和kcp-csharp项目
server怎么查找session?
服务器
throw new ArgumentNullException("array");
KCP.dll!KCP.Common.DefaultArrayPool.Return(byte[] array, bool clearArray) 行 305 C#
KCP.dll!KCP.Server.KCPServer..ctor.AnonymousMethod__21_1(byte[] buf) 行 68 C#
KCP.dll!KCP.Common.KCPLib.Dispose() 行 1173 C#
KCP.dll!KCP.Server.KCPServer.ProcessDisposedQueue() 行 143 C#
KCP.dll!KCP.Server.KCPServer.Update() 行 122 C#
teste_kcp_server.exe!Program.Main(string[] args) 行 31 C#
客户端Assert
Debug.Assert(c.EndPoint.ToString() == e.RemoteEndPoint.ToString());
两者端口不同
我测试发送一个较大的数据包,比如2048会报错.
发现是send的时候size计算有误.
我自己修改之后,size正确了,
测试了其他长度,比如60000,1024000传输不正常
后续包无法正常收发,总是收到一个24字节的反馈.没有数据.剩下的我就不会修改了.
未处理System.ArgumentException
HResult=-2147024809
Message=源数组长度不足。请检查 srcIndex 和长度以及数组的下限。
ParamName=""
Source=mscorlib
StackTrace:
在 System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
在 System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length)
在 KCP.Common.KCPLib.Send(Byte[] buffer, Int32 index, Int32 bufsize) 位置 C:\Users\DongHanjun\Source\Repos\kcp.net\Kcp\Common\kcp_v2.cs:行号 407
在 KCP.Common.KCPLib.Send(Byte[] buffer) 位置 C:\Users\DongHanjun\Source\Repos\kcp.net\Kcp\Common\kcp_v2.cs:行号 418
在 KCP.Client.KCPClient.Send(Byte[] buf) 位置 C:\Users\DongHanjun\Source\Repos\kcp.net\Kcp\KCPClient.cs:行号 160
在 test_kcp_client.ClientState.client_Event(UdpClientEvents arg1, Byte[] arg2) 位置 C:\Users\DongHanjun\Source\Repos\kcp.net\test_kcp_client\Program.cs:行号 105
在 KCP.Client.KCPClient.process_recv_queue() 位置 C:\Users\DongHanjun\Source\Repos\kcp.net\Kcp\KCPClient.cs:行号 200
在 KCP.Client.KCPClient.update(UInt32 current) 位置 C:\Users\DongHanjun\Source\Repos\kcp.net\Kcp\KCPClient.cs:行号 238
在 KCP.Client.KCPClient.Update() 位置 C:\Users\DongHanjun\Source\Repos\kcp.net\Kcp\KCPClient.cs:行号 173
在 test_kcp_client.ClientState.Start(String host, UInt16 port, UInt32 index, Int32 key) 位置 C:\Users\DongHanjun\Source\Repos\kcp.net\test_kcp_client\Program.cs:行号 84
在 test_kcp_client.Program.<>c__DisplayClass0_0.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.