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

DTLS server在windows系统中不支持多client同时连入 #17

Open
QianShuoRobert opened this issue Nov 29, 2020 · 0 comments
Open

Comments

@QianShuoRobert
Copy link

windows不支持UDP的端口复用,所以在Linux中server支持多client同时连接,握手和通信,但是winodws中server只能支持一个client的访问。我尝试用了一个很复杂的办法解决这个问题,最终成功了。
我是在localhost上开启了多个server,每个server只为一个client提供服务。又做了一个udp的转发模块,监听一个外部端口,将所有的通信按照ip+port进行向内转发,同时内部server回复的所有消息也按照同样的规则向外转发。这样对外模拟出一个支持多client同时接入的server

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

No branches or pull requests

1 participant