C# 需要简单的 UDP 套接字教程
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2069068/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Simple UDP Socket Tutorial Needed
提问by Bloodyaugust
I have been searching and reading all day, and have not found a UDP sockets programming tutorial suitable for a newbie. I know UDPClient programming, but, because of the inability of UDPClient to receive a message without blocking AND without having problems with cross-thread commands, I have turned to sockets. I don't even truly know if what I am trying to do is possible, so please help in any way you can. Much Obliged.
找了一整天,没找到适合新手的UDP sockets编程教程。我知道 UDPClient 编程,但是,由于 UDPClient 无法在不阻塞的情况下接收消息并且没有跨线程命令的问题,我转向了套接字。我什至不知道我想要做的事情是否可行,所以请以任何方式提供帮助。多谢。