gpt4 book ai didi

c++ - 在 obj-c/C++ 中使用 UDP 的例子?

转载 作者:太空宇宙 更新时间:2023-11-04 14:26:34 24 4
gpt4 key购买 nike

我正在制作一个 iOS 应用程序 - 实时游戏,想使用 UDP 协议(protocol)。我正在大量搜索示例/指南,但找不到任何示例/指南。另外,服务器上的软件会使用C++,我找了很多也没有找到一个好的方法来使用它,对于C++初学者...

我发现:http://developer.apple.com/mac/library/samplecode/PictureSharing/Introduction/Intro.html#//apple_ref/doc/uid/DTS10000712-Intro-DontLinkElementID_2

但它使用的是 TCP。

所以,如果有人有在 Objective-C 和 C++ 中使用 UDP 的示例...

谢谢!

最佳答案

也许看看 UDT:

UDT -- 基于UDP的数据传输

http://udt.sourceforge.net/software.html

The UDT software is a C++ library containing the UDT API implementation and programming examples. The most recent version is UDT version 4, including 3 separate packages: pure source code, GNU package, and pre-compiled WIN32/i386 version. All UDT releases can be downloaded from UDT SourceForge project web site.

...

UDT supports Linux, Windows, OS X, and BSD.

关于c++ - 在 obj-c/C++ 中使用 UDP 的例子?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3507716/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com