Code Monkey home page Code Monkey logo

Comments (5)

StormHub avatar StormHub commented on September 26, 2024 1

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.

from netuv.

Tgsgf avatar Tgsgf commented on September 26, 2024

噢!是我错了,我想把程序集统一改成2.1.-以上版本, 导致我添加的程序集是"libuv-cs(1.23.0.5)",所以会报错,我修改成"libuv(1.10.0)"运行成功!谢谢

from netuv.

Tgsgf avatar Tgsgf commented on September 26, 2024

@StormHub 我发现NetUV封装的发送和接收缓冲区很好,只不过我使用C++libuv版本作为服务器,protobuf作为传递消息结构, 但是我在NetUV使用UDP接收消息时发现最大缓冲是2048字节,超过这个字节数会截断,我知道UDP网络传输不建议超过2048字节, 超过2048字节可以拆开发送, 但是我的想改变最大接收缓冲以供我的需求,我要怎么设置才能增大接收缓冲区

from netuv.

StormHub avatar StormHub commented on September 26, 2024

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.

from netuv.

Tgsgf avatar Tgsgf commented on September 26, 2024

@StormHub 如果我想通过另一个项目的可执行文件调用NetUV.Core编译出来的DLL,需要注意哪些细节吗? 我在可执行文件中加入了依赖项还是在运行时报错:"无法加载DLL“libuv”"

from netuv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.