Code Monkey home page Code Monkey logo

Comments (6)

zacstewart avatar zacstewart commented on September 23, 2024

Could you clarify this a little? I'm still trying to get a grip on the terminology: what is an endpoint in this context?

In the Ruby world, there are tools like Faker and Forgery which can generate random pieces of data like phone numbers and IP addresses. Are you looking for something like that here?

from crust.

chandraprakash avatar chandraprakash commented on September 23, 2024

Enpoint is an Enum representing endpoint of supported protocols in crust.
https://github.com/maidsafe/crust/blob/master/src/transport.rs#L32

For Random endpoint, you can see an example here: https://github.com/maidsafe/routing/blob/master/src/test_utils/types_util.rs

from crust.

dirvine avatar dirvine commented on September 23, 2024

If you check the utp repo you will find how they use this very similar feature :-) https://github.com/meqif/rust-utp/blob/master/tests/stream.rs

from crust.

chandraprakash avatar chandraprakash commented on September 23, 2024

There is an implementation already in routing, you need to update it in crust.(using Random trait)
https://github.com/maidsafe/routing/blob/master/src/test_utils/messages_util.rs#L28

from crust.

inetic avatar inetic commented on September 23, 2024

@benjaminbollen @dirvine, so Routing currently has its own function to generate random Endpoints and Connections, could you confirm that this is OK and we can close this issue or whether you want Crust to export such functionality.

from crust.

inetic avatar inetic commented on September 23, 2024

I may have accidentally opened this issue myself :-P, closing again.

from crust.

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.