Code Monkey home page Code Monkey logo

Comments (5)

thomaseizinger avatar thomaseizinger commented on August 11, 2024

Yes. You need to continously call poll_next_inbound for streams to make progress.

This yamux implementation does not have any implicit background tasks but the streams are just connected to the Connection via channels. If you don't poll the connection, those channels are never read from and thus no data is sent to the network.

from rust-yamux.

thomaseizinger avatar thomaseizinger commented on August 11, 2024

You probably want to write yourself your own eventloop that houses the Connection and sends Streams to your app via channels.

from rust-yamux.

pysrc avatar pysrc commented on August 11, 2024

You probably want to write yourself your own eventloop that houses the Connection and sends Streams to your app via channels.

Can you make some changes based on my code? I have tried many ways, but it still doesn't work.

from rust-yamux.

thomaseizinger avatar thomaseizinger commented on August 11, 2024

You probably want to write yourself your own eventloop that houses the Connection and sends Streams to your app via channels.

Can you make some changes based on my code? I have tried many ways, but it still doesn't work.

Sorry, don't have the capacity for that! Have you had a look at the tests in this repository?

from rust-yamux.

caelansar avatar caelansar commented on August 11, 2024

Please refer to this code

from rust-yamux.

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.