Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持 IPv6 和 TCP 打洞 #449

Open
lanthora opened this issue Oct 24, 2024 · 3 comments
Open

支持 IPv6 和 TCP 打洞 #449

lanthora opened this issue Oct 24, 2024 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@lanthora
Copy link
Owner

lanthora commented Oct 24, 2024

首先需要有一种合适的数据结构保存 IPv4/IPv6 的 TCP/UDP 连接,同时还应该能比较方便的序列化后通过服务端传递.

@lanthora lanthora added help wanted Extra attention is needed enhancement New feature or request labels Oct 24, 2024
@lanthora
Copy link
Owner Author

尝试使用 Poco 替换直接使用操作系统 API 完成的 UDP 操作

创建支持 IPv6 的 UDP Socket 并获取绑定的端口号

this->socket = Poco::Net::DatagramSocket(Poco::Net::SocketAddress(0), true);
this->address = socket.address();

@lanthora lanthora changed the title 支持 IPv6 TCP P2P 支持 IPv6 和 TCP 打洞 Oct 31, 2024
@rainpaper-bs
Copy link

我也希望支持该功能,很适合国内网络环境,ipv6基本都有

@lanthora
Copy link
Owner Author

lanthora commented Nov 1, 2024

@rainpaper-bs 这个功能优先级比较高,在我想到满意的实现方式后会尽快支持的。如果有人感兴趣也可以提供一些实现上的思路

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants