
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@ndn/dpdkmgmt
Advanced tools
This package is part of NDNts, Named Data Networking libraries for the modern web.
This package enables interaction with NDN-DPDK high-speed forwarder. It can create faces for the NDNts application, and perform prefix registrations.
Currently, there are several limitations using this package:
import { openFace } from "@ndn/dpdkmgmt";
// other imports for examples
import { Endpoint } from "@ndn/endpoint";
import { Forwarder } from "@ndn/fw";
import { Name, Interest, Data } from "@ndn/packet";
import { fromUtf8, toUtf8 } from "@ndn/tlv";
import { strict as assert } from "assert";
(async () => {
const gqlServer = process.env.DEMO_DPDKMGMT_GQLSERVER;
const localHost = process.env.DEMO_DPDKMGMT_LOCAL;
if (!gqlServer || !localHost) {
console.log(`
To run @ndn/dpdkmgmt demo, set the following environment variables:
DEMO_DPDKMGMT_GQLSERVER= NDN-DPDK forwarder GraphQL server URI
DEMO_DPDKMGMT_LOCAL= IP address to reach local host from NDN-DPDK forwarder
`);
return;
}
// Topology of this demo
//
// producer consumer
// | |
// fwP fwC
// \---------- NDN-DPDK ----------/
// uplinkP uplinkC
// Create two logical forwarders, one as consumer and one as producer.
const fwC = Forwarder.create();
const fwP = Forwarder.create();
// Connect to NDN-DPDK.
const uplinkC = await openFace({
fw: fwC,
localHost,
gqlServer,
});
uplinkC.addRoute(new Name("/"));
const uplinkP = await openFace({
fw: fwP,
localHost,
gqlServer,
});
console.log(`uplinkC=${uplinkC}`, `uplinkP=${uplinkP}`);
// Start a producer.
const producer = new Endpoint({ fw: fwP }).produce("/P",
async () => {
console.log("producing");
return new Data("/P", Data.FreshnessPeriod(1000), toUtf8("NDNts + NDN-DPDK"));
});
await new Promise((r) => setTimeout(r, 500));
// Start a consumer, fetching Data from the producer via NFD.
const data = await new Endpoint({ fw: fwC }).consume(
new Interest("/P", Interest.MustBeFresh),
);
const payloadText = fromUtf8(data.content);
console.log("received", `${data.name} ${payloadText}`);
assert.equal(payloadText, "NDNts + NDN-DPDK");
// Close faces.
producer.close();
await new Promise((r) => setTimeout(r, 500));
uplinkC.close();
uplinkP.close();
})();
FAQs
NDNts: NDN-DPDK Management
The npm package @ndn/dpdkmgmt receives a total of 8 weekly downloads. As such, @ndn/dpdkmgmt popularity was classified as not popular.
We found that @ndn/dpdkmgmt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.