how to share files with other Mob phone connected to the same network with which you are connected?

本小妞迷上赌 提交于 2019-12-12 08:17:04

问题


I want to share file from my Mob Phone to other Mob Phone which are connected to the same network with which i am connected, is it can do easily with tcp or dhcp or socket, please i don't know about all of these also.


回答1:


yes u can share the file through socket communication. Implement the server socket from the device which has the file. And client socket in the other device. here is the link which shows simple socket communication http://www.javaworld.com/jw-12-1996/jw-12-sockets.html Once socket communication is done , read data from the input stream in a loop as long as data is available.




回答2:


You can share your file with other mob phone which are connected with same network with which you are already connected. Now how to share these files between parties, see this articles it will solve your problem

Sending file from one client to another client using socket in java



来源:https://stackoverflow.com/questions/14994865/how-to-share-files-with-other-mob-phone-connected-to-the-same-network-with-which

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!