找回密码
 立即注册
the电脑手机socket | android开发 2022-11-07 38 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
android在wifi下手机与电脑的socket通信,内附电脑端的VC++程序源码,需要在VC6环境下编译并生成EXE文件,方可运行,一起还包括了本实例实现进程的技术文档。在wifi网络下,手机和电脑可以通过socket通信。手机做服务端,电脑做客户端,也可以对调过来。手机作为服务端,电脑使用MFC编程作为客户端,原理是,手机建立一个ServerSocket,并获取自己的ip地址和端口port;然后电脑通过socket连接手机的ip:port。

(Android communicates with the socket of the computer on the mobile phone under wifi. The source code of VC  program on the computer side is included. It can be run only after the EXE file is compiled and generated in the VC6 environment. The technical document of the implementation process of this example is also included. Under the wifi network, mobile phones and computers can communicate through sockets. The mobile phone is the server and the computer is the client, which can also be exchanged. The mobile phone serves as the server and 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.)

[下载]13472324476.rar




上一篇:Android aidl跨进程调用源码例子+详解
下一篇:PopupWindow实现Android应用的弹出菜单