我正在尝试以新手的身份学习 UDP 编码。
我从事 iOS 开发多年,想开始学习使用 UDP 协议进行一些基本的网络编码。
有没有我不能做任何伤害的练习场?
或者...是否可以仅连接 OS X 附带的 Apache 服务器并使用它?
这旨在用于 iOS 环境,因此至少必须通过模拟工作。
Apache is an HTTP server, HTTP being a protocol built on TCP not UDP. You're probably going to be best off trying to write both a client and server that run in the same application and having them talk to each other via UDP.
FWIW, DNS is based on UDP, so talking to a public DNS server might be a good starting point.