Comments (5)
原谅我这烂语言组织能力
简单的说 我Client发送的端口 必须和 Server端监听端口 一致吗?
from dht.
没有所谓的client端, 只有server端(DHT server), 其他DHT节点获取到你的ip和端口是你的server端.
from dht.
嗯嗯 应该是我的描述有误 Client和Server 应该指的是 UDP
我需要不断的向自己的好友列表和查询好友列表后返回的节点 主动发送 find_node请求
这时候发送数据包的UDP 的Client 的发送端口 应该就是 我UDP Server接收端口
那这样的话 同时间运行的话 就会出现端口占用的问题
请问 是哪一个环节我的理解出现了偏差?
from dht.
这时候发送数据包的UDP 的Client 的发送端口 应该就是 我UDP Server接收端口
发送UDP请求的时候不用指定client端口, 系统会自动为你分配. UDP相关知识你可能忘了, 建议复习下 :)
from dht.
好的 非常感谢!
from dht.
Related Issues (20)
- 阿里云上接受不到数据, 通过日志分析绝大多数错误是decode
- 如何加入dht网络? HOT 5
- routingtable:getTopK HOT 1
- find_node no response HOT 7
- 代码写的不是很好看. HOT 4
- 关于节点插入时bucket分裂问题 HOT 1
- Spider Shows no result , waits almost 15 minutes for one metadata HOT 2
- 6060端口的作用是? HOT 2
- fastXORBytes will panic on some architectures due to unaligned access HOT 1
- 内网运行,为什么其他的dht项目包括Js等都收不到udp回复,而这个服务就能收到呢 HOT 1
- Spider needs fixing. HOT 5
- arm64平台无法编译
- Potential panic caused by illegal incoming packet
- 请问如何在本地调试会方便一些 HOT 1
- bthub.io HOT 2
- Is this project still maintained? HOT 1
- 这个程序怎么搜索文件? HOT 1
- 访问 bittorrent / utorrent.com 总是超时?
- ipv6优先支持 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dht.