Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@libp2p/tcp
Advanced tools
A TCP transport for libp2p
A libp2p transport based on the TCP networking stack.
import { createLibp2p } from 'libp2p'
import { tcp } from '@libp2p/tcp'
import { multiaddr } from '@multiformats/multiaddr'
const node = await createLibp2p({
transports: [
tcp()
]
})
const ma = multiaddr('/ip4/123.123.123.123/tcp/1234')
// dial a TCP connection, timing out after 10 seconds
const connection = await node.dial(ma, {
signal: AbortSignal.timeout(10_000)
})
// use connection...
$ npm i @libp2p/tcp
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
FAQs
A TCP transport for libp2p
The npm package @libp2p/tcp receives a total of 7,052 weekly downloads. As such, @libp2p/tcp popularity was classified as popular.
We found that @libp2p/tcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.