Code Monkey home page Code Monkey logo

Comments (4)

alexcrichton avatar alexcrichton commented on June 16, 2024

Thanks for the report! Yeah it's too late to radically design the std::net module, but it's intended that this repository would serve for any other flavors of extensions or use cases. It's currently our belief that we can have a "rustic" interface while also preserving maximal flexibility in terms of what underlying syscalls need to be issued.

Do you have some concrete use cases which aren't enabled by net2 + std::net today? Would be good to know if the design needs to change!

from net2-rs.

nathansizemore avatar nathansizemore commented on June 16, 2024

As far as just flat out things not possible currently, only a few various options through getsockopt and setsockopt are left. Of the options, now that the buf sizes PR just got accepted, I'm only missing one that I care about, and I'll be sending a PR to cover this right after I get this comment finished :)

As far as general use cases that I'm currently having trouble working directly with std::net go, I thought I had one, but by the time I was finished writing it all out here, I discovered that it was just me being dumb, and found a better way to handle it. Funny how just by writing out your problem sometimes causes the solution to dawn on you!

from net2-rs.

nathansizemore avatar nathansizemore commented on June 16, 2024

Never mind about the PR, it appears that option is there as well and I just missed it.

from net2-rs.

alexcrichton avatar alexcrichton commented on June 16, 2024

Good to hear it worked out! We're definitely still missing a number of common socket options I think, so if you run across any that need to be added feel free to send a PR!

from net2-rs.

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.