找回密码
 立即注册
thesocketcomputer电脑 | android开发 2022-11-07 60 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
在android环境中,使用wifi与电脑的socket通信实例,用C++写了电脑端程序,手机做服务端,电脑做客户端;也可以反过来,电脑使用MFC编程作为客户端,原理是,手机建立一个ServerSocket,并获取自己的ip地址和端口port;然后电脑通过socket连接手机的ip:port。电脑上主要使用的是MFC编程,socket代码请拜见实例。

(In the android environment, use wifi to communicate with the computer socket instance, write the computer end program with C  , use the mobile phone as the server, and use the computer as the client; Alternatively, the computer uses MFC programming as the client. The principle is that the mobile phone establishes a ServerSocket and obtains its own IP address and port; Then the computer connects to the IP: port of the phone through the socket. MFC programming is mainly used on the computer. Please refer to the example for socket code.)

[下载]11593851837.rar




上一篇:Android实现Twitter网站迷你登录界面
下一篇:Android对话框dialog实例源码集