[mobile.game][提问] 移动游戏开发中的网络支持问题。

24 views
Skip to first unread message

Alex

unread,
Oct 17, 2011, 1:15:00 AM10/17/11
to game.dev.top
移动游戏开发难免涉及到联网,由服务器拉或者推数据,采用何种连接方式?如何选择长连接或者短连接呢?缓存机制怎么使用?有没有开源的跨ios,
andriod的支持库,比如libxml,但是其完成的http或者ftp等层次的支持,对于一些socket应用如何解决?

iamshok

unread,
Apr 20, 2013, 10:24:01 PM4/20/13
to gamed...@googlegroups.com
cocos2d-x有集成libcurl,可以尝试下,当然,直接用bsd sokcet亦可,对于长连接和短连接则看实际的需求了,一般的网络游戏来说,是采用长连接的;有特殊情况,比如查看排行榜,则可以采用短连接。
Reply all
Reply to author
Forward
0 new messages