androidwifipcsocket

所属分类:android开发
开发工具:Java
文件大小:4420KB
下载次数:41
上传日期:2013-04-18 11:24:05
上 传 者hpudn37
说明:  android在wifi下手机与电脑的socket通信,内附电脑端的VC++程序源码,需要在VC6环境下编译并生成EXE文件,方可运行,同时还包括了本实例实现过程的技术文档。在wifi网络下,手机和电脑可以通过socket通信。手机做服务端,电脑做客户端,也可以对调过来。   手机作为服务端,电脑使用MFC编程作为客户端,原理是,手机建立一个ServerSocket,并获取自己的ip地址和端口port;然后电脑通过socket连接手机的ip:port。
(android wifi phone and computer socket communication under the included PC VC++ program source code, you need to compile in VC6 environment and generate EXE file can be run, also includes examples of the realization process of technical documentation. Wifi network, mobile phones and computers through socket communication. Phone to do the server computer to do a client, you can also swap over. Phone as a server, the computer uses MFC programming as a client, the principle is the phone to create a ServerSocket Get your own ip address and port port then the computer through the socket connection phone ip: port.)

文件列表:
androidwifipcsocket\android在wifi下手机与电脑的socket通信.doc (150528, 2013-03-24)
androidwifipcsocket\workspace\ControlPC\.classpath (364, 2011-12-26)
androidwifipcsocket\workspace\ControlPC\.project (845, 2011-12-26)
androidwifipcsocket\workspace\ControlPC\AndroidManifest.xml (1075, 2011-12-28)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\ControlPCActivity$1.class (2313, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\ControlPCActivity$2.class (2042, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\ControlPCActivity$3.class (2044, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\ControlPCActivity$4.class (3681, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\ControlPCActivity$5.class (1298, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\ControlPCActivity$6.class (2285, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\ControlPCActivity$7.class (3223, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\ControlPCActivity$8.class (1554, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\ControlPCActivity.class (9730, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\mouseActivity$1.class (1365, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\mouseActivity$2.class (1155, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\mouseActivity$3.class (843, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\mouseActivity.class (7784, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\R$attr.class (325, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\R$drawable.class (423, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\R$id.class (1186, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\R$layout.class (415, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\R$string.class (412, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes\gjz\ControlPC\R.class (496, 2012-01-17)
androidwifipcsocket\workspace\ControlPC\bin\classes.dex (23020, 2011-12-30)
androidwifipcsocket\workspace\ControlPC\bin\ControlPC.apk (158709, 2011-12-30)
androidwifipcsocket\workspace\ControlPC\bin\res\drawable-hdpi\bg_chat.png (132683, 2011-12-30)
androidwifipcsocket\workspace\ControlPC\bin\res\drawable-hdpi\ic_launcher.png (3966, 2011-12-30)
androidwifipcsocket\workspace\ControlPC\bin\res\drawable-ldpi\ic_launcher.png (1537, 2011-12-30)
androidwifipcsocket\workspace\ControlPC\bin\res\drawable-mdpi\ic_launcher.png (2200, 2011-12-30)
androidwifipcsocket\workspace\ControlPC\bin\resources.ap_ (146794, 2011-12-30)
androidwifipcsocket\workspace\ControlPC\gen\gjz\ControlPC\R.java (2149, 2011-12-30)
androidwifipcsocket\workspace\ControlPC\proguard.cfg (1248, 2011-12-26)
androidwifipcsocket\workspace\ControlPC\project.properties (361, 2011-12-26)
androidwifipcsocket\workspace\ControlPC\res\drawable-hdpi\bg_chat.png (136049, 1980-01-01)
androidwifipcsocket\workspace\ControlPC\res\drawable-hdpi\ic_launcher.png (4147, 2011-12-26)
androidwifipcsocket\workspace\ControlPC\res\drawable-ldpi\ic_launcher.png (1723, 2011-12-26)
androidwifipcsocket\workspace\ControlPC\res\drawable-mdpi\ic_launcher.png (2574, 2011-12-26)
androidwifipcsocket\workspace\ControlPC\res\layout\main.xml (4552, 2011-12-30)
androidwifipcsocket\workspace\ControlPC\res\layout\mouse_layout.xml (2014, 2011-12-30)
androidwifipcsocket\workspace\ControlPC\res\values\strings.xml (184, 2011-12-26)
... ...

======================================================================== SAMPLE APPLICATION : Keyexe ======================================================================== Disclaimer ---------- THIS SOFTWARE AND THE ACCOMPANYING FILES ARE DISTRIBUTED "AS IS" AND WITHOUT ANY WARRANTIES WHETHER EXPRESSED OR IMPLIED. NO REPONSIBILITIES FOR POSSIBLE DAMAGES OR EVEN FUNCTIONALITY CAN BE TAKEN. THE USER MUST ASSUME THE ENTIRE RISK OF USING THIS SOFTWARE. Terms of use ------------ THIS SOFTWARE IS FREE FOR PERSONAL USE OR FREEWARE APPLICATIONS. IF YOU USE THIS SOFTWARE IN COMMERCIAL OR SHAREWARE APPLICATIONS YOU ARE GENTLY ASKED TO SEND ONE LICENCED COPY OF YOUR APPLICATION(S) TO THE AUTHOR. IF YOU WANT TO PAY SOME MONEY INSTEAD, CONTACT ME BY EMAIL. YOU ARE REQUESTED TO CONTACT ME BEFORE USING THIS SOFTWARE IN YOUR SHAREWARE/COMMERCIAL APPLICATION. Contact info: Site: http:bizkerala.hypermart.net Email: anoopt@gmx.net ------------------------------------------------------------------------------------------------------------------------------- Usage : ------------------------------------------------------------------------------------------------------------------------------- The DLL contains 3 exported functions: 1) void installhook(HWND h); 2) void removehook(); 3) LRESULT CALLBACK hookproc(int ncode,WPARAM wparam,LPARAM lparam); Keydll3.dll: ----------- You should use installhook() to install the Keyboard hook. Pass a pointer of the main Application window as the parameter. Always use removehook() to remove the hook before your app exits. Change the Classname and window title in the call FindWindow(). The classname will be the classname of your application main window and the title set to the title of your application main window. Then compile and link the Files to obtain the .LIB and .DLL files. Application: ------------- When building your application, include the file 'Keydll3.h' in your project and also, do not forget to '#include' wherever necessary. Specify 'Keydll3.lib' in the additional modules section in the Project settings. And, do not forget to add the path to keydll3.lib to the library paths in visual studio. Otherwise, you will get a linker error. Put the .EXE and .DLL in the same folder and run the exe. See the sample project 'Keyexe' source for more details. The log of keystrokes is stored in a file 'Keylog.txt' in your temp folder.

近期下载者

相关文件


收藏者