找回密码
 立即注册
theAndroidJNICSockTest比如 | android开发 2022-11-03 48 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
CSockTest:Ctcpservclnt、udpbroadcastrecvsend的比如。
AndroidJNI:androidjni封装的tcpclntudpbcrecv的比如。上述两工程是搭配调试的。CSockTest需在linux或cygwin下编译,不是用的Winsock2.h。tcpclnt可设keepalive。
DemoServer、DemoClient:java的广播监听服务器上线和tcp双相控制Serv本地播放视频的比如。以上tcp通信,都简单封装了头4字节为信息长度,以预防粘包。详细:AndroidSocketCocos2dx的资料vaero.blog.51cto/4350852/1117957

(CSockTest: For example, Ctcpservclnt and udpbroadcastrecvsend.
Android JNI: For example, the tcpclntudpbrecv encapsulated by androidjni. The above two projects are debugged together. CSockTest should be compiled under linux or cygwin, not Winsock2. h. Tcpclnt can be set as keepalive.
DemoServer and DemoClient: For example, the java broadcast monitor server is online and the tcp dual phase control Serv plays videos locally. The above tcp communications are simply packaged with the first 4 bytes as the information length to prevent packet sticking. Details: information about AndroidSocketCocos2dx vaero.blog.51cto/4350852/1117957)

[下载]15573073716.rar




上一篇:Android系统原理及开发要点详解
下一篇:Cocos2dx资料