问题描述
我已经创建了一个使用远程处理来发送和接收声音的客户端服务器系统.它当前正在TCP/IP上运行,这对于具有良好连接的客户端来说是没有问题的.通过研究,我开始认为UDP连接可能有助于解决此问题.
我是这样想的吗?
如果是这样,我该怎么做.我已经尝试过了,但是它只连接了具有静态IP的客户端,我发现UDP在遍历NAT时遇到问题.
谁能告诉我一些客户端服务器连接的示例代码.在过去的两个星期中,我一直在浏览网络.
请帮助
I have created a client server system using remoting to transmit and receive sound. It is currently working on TCP/IP which is no problem for clients with a good connection. Through research I came to think that a UDP connection might help with this issue.
Am I right in thinking this?
If so how do I go about it. I have tried this but it only connects clients with a static IP and I found that UDP has problems traversing the NAT.
Could anyone show me some sample code of a client server connection please. I have been browsing the net for this for the last 2 weeks.
Please help
推荐答案
这篇关于UDP声音连接遍历NAT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!