Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如标题所说。我想构建 udp 数据包并将它们发送到绑定特定端口的本地进程。我想让进程相信数据包来自其他主机(例如 8.8.8.8)。我应该将哪些参数传递给 socket() 和 sendto()?