Giter Site home page Giter Site logo

PortSegment configuration. about eip-rs HOT 1 OPEN

ftneves avatar ftneves commented on June 14, 2024
PortSegment configuration.

from eip-rs.

Comments (1)

Joylei avatar Joylei commented on June 14, 2024

It's possible.
I think you need to figure out the routing paths.

Please refer to Routing_Paths for understanding of routing paths.


Sample code for building routing paths:

    let mut routing_path = EPath::new();
    // -- EN2T at slot 6 --
    routing_path = routing_path.with_port_slot(1, 6); // backplane, slot 6
    routing_path.push(Segment::Port(PortSegment {
        port: 2, // EN2T port 2
        link: bytes::Bytes::from_static(&[192, 168, 0, 1]),
    }));
    // -- final device
    routing_path = routing_path.with_port(1); // backplane, slot 0
    let mut client = AbEipClient::new_host_lookup("192.168.0.2")
        .await?
        .with_connection_path(routing_path);

from eip-rs.

Related Issues (18)

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.