Skip to content
New issue

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

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

Already on GitHub? # to your account

UDPCast 连接端不应该绑定服务端的端口 #257

Open
woowloop opened this issue Jun 26, 2023 · 1 comment
Open

UDPCast 连接端不应该绑定服务端的端口 #257

woowloop opened this issue Jun 26, 2023 · 1 comment

Comments

@woowloop
Copy link

在UdpCast.cpp CreateClientSocket函数中 客户端不应该同时绑定目标端口。否则在服务端运行的主机上客户端就会绑定端口失败。

@ldcsaa
Copy link
Owner

ldcsaa commented Jul 2, 2023

这是简化设计,不想分别用2个socket对象收发数据。
如果想重用端口可以设置 SetReuseAddressPolicy

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants