在obj-c / C ++中使用UDP的例子? [英] Example of using UDP in obj-c/C++?
问题描述
我正在做一个iOS应用程序 - 实时游戏,想使用UDP协议。我正在搜索很多的例子/指南,但找不到任何。
此外,服务器上的软件将使用C ++,我已经搜索了很多,不能fina一个很好的方式使用它,对于C ++的开始... ...
I'm making an iOS app - real-time game, wanna use UDP protocol. I'm searching a lot for examples/guides, but can't find any. Also, the software on the server will use C++, and I've searched a lot and can't fina a nice way to use it, for begginers in C++...
但是它使用TCP。
因此,如果任何人有一个在objective-c中使用UDP的例子, C ++ ...
So, if anyone have an example of usuing UDP in objective-c and C++...
谢谢!
推荐答案
在UDT:
UDT - 基于UDP的数据传输
UDT -- UDP-based data transfer
http://udt.sourceforge.net/software.html
UDT软件是一个包含UDT API实现和编程示例的C ++库。最新版本是UDT版本4,包括3个独立的包:纯源代码,GNU包和预编译的WIN32 / i386版本。所有UDT版本都可以从UDT SourceForge项目网站下载。
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支持Linux, Windows,OS X和BSD。
UDT supports Linux, Windows, OS X, and BSD.
这篇关于在obj-c / C ++中使用UDP的例子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!