Open Tgsgf opened 6 years ago
How do you execute the project? dotnet run or from executable? If you do dotnet run from project folder, you should not have this problem. If you run it by executable, you have to do a dotnet publish --self-contained to pull down all dependencies. This is the way how dotnet core works.
噢!是我错了,我想把程序集统一改成2.1.-以上版本, 导致我添加的程序集是"libuv-cs(1.23.0.5)",所以会报错,我修改成"libuv(1.10.0)"运行成功!谢谢
@StormHub 我发现NetUV封装的发送和接收缓冲区很好,只不过我使用C++libuv版本作为服务器,protobuf作为传递消息结构, 但是我在NetUV使用UDP接收消息时发现最大缓冲是2048字节,超过这个字节数会截断,我知道UDP网络传输不建议超过2048字节, 超过2048字节可以拆开发送, 但是我的想改变最大接收缓冲以供我的需求,我要怎么设置才能增大接收缓冲区
The buffer gets a 2048 byte fixed buffer allocated at https://github.com/StormHub/NetUV/blob/dev/src/NetUV.Core/Handles/Udp.cs#L381 It can be changed to expose by buffer size parameter easily. But changing that buffer size might not help that much because IO receive buffer size is actually controlled by the operation system. That was the reason that it is set to fixed 2k bytes.
@StormHub 如果我想通过另一个项目的可执行文件调用NetUV.Core编译出来的DLL,需要注意哪些细节吗? 我在可执行文件中加入了依赖项还是在运行时报错:"无法加载DLL“libuv”"
我是个新手,我会使用C++版,但是项目需求需要移植到unity移动端,我想使用C#版,但是编译通过运行时报错: “Echo client error System.TypeInitializationException: The type initializer for 'NetUV.Core.Native.NativeMethods' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'libuv' or one of its dependencies: The specified module could not be found.”; 是不是缺少了什么?