Giter Site home page Giter Site logo

Comments (6)

benny-n avatar benny-n commented on July 18, 2024

Hi @cBournhonesque

This trait's main purpose was to allow easy and modular testing and I didn't think it would be of any use as public, that's why the module was made private.

Having said that I see no problem at all in making it public :)

Out of curiosity, could you elaborate about your specific use-case?

from netcode.

cBournhonesque avatar cBournhonesque commented on July 18, 2024

I wanted (just to learn rust + networking) to create a networking library where I would work on passing messages reliably + fragmentation (equivalent of reliable.io if I understand correctly), but use your library for all the logic of establishing a secure connection (equivalent of netcode.io).

I'd like my library to be transport-agnostic so that I could potentially use transports that are compatible with browsers via wasm (webtransport or webrtc, potentially?)

Here's an inspiration which is transport-agnostic! https://github.com/naia-lib/naia/tree/main

from netcode.

benny-n avatar benny-n commented on July 18, 2024

Sounds great!

FYI, I plan to implement a reliable.io layer as a feature for this crate (when I'll have some extra time to spare).

Until then, I will start working on making Transceiver public.
Turns out it won't be as straight forward as just adding pub to the module. Currently there is no easy way to obtain a Client or a Server with a custom Transceiver at all, since new is only implemented for Server<NetcodeSocket> and Client<NetcodeSocket>.

My current plan is to generalize most of the behavior in those implementations and add a with_custom_transceiver method to both Client and Server.

from netcode.

cBournhonesque avatar cBournhonesque commented on July 18, 2024

Awesome; is there a way I could chat with you? Maybe on discord?

from netcode.

benny-n avatar benny-n commented on July 18, 2024

Sure :)
My discord is wicked_lama

from netcode.

benny-n avatar benny-n commented on July 18, 2024

@cBournhonesque I opened #8 to address this issue.
It would be great if you could try it out and see if it suits your use case!

from netcode.

Related Issues (1)

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.