沒有廢話,直接上版本號(hào)和代碼,以及講解。
crate | 版本號(hào) |
---|---|
libp2p | 0.52.1 |
tokio | 1.30.0 |
依賴配置:
[dependencies]
tokio = { version="1.30.0", features=["full"] }
libp2p = { version="0.52.1", features=["tokio","dns", "macros", "noise", "ping", "tcp", "websocket", "yamux"] }
P2P
Peer-to-Peer是一種網(wǎng)絡(luò)技術(shù)。一種點(diǎn)對(duì)點(diǎn)的通訊技術(shù)。沒有client-service概念。文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-655127.html
節(jié)點(diǎn)
在P2P網(wǎng)絡(luò)中,節(jié)點(diǎn)標(biāo)識(shí)被成為PeerId。文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-655127.html
代碼
use std::error::
到了這里,關(guān)于P2P 網(wǎng)絡(luò),PING程序。的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!