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.
我使用下面的代码来创建套接字。
CFSocketRef socket = CFSocketCreate(kCFAllocatorDefault, PF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, NULL, NULL);
我已将 SOCK_DGRAM、IPPROTO_UDP 作为参数以通过 UDP 进行请求,但请求仍然通过 TCP 进行,仅使用 Wireshark 检查。
任何帮助将非常感激。