(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)