| | |
How can I use IP address to access the file names in computer?
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jun 2005
Posts: 3
Reputation:
Solved Threads: 0
Hi,
I have a project on peer-to-peer file transferring...Now I don't have any clue how I can use just the IP address of a computer to search for files in different drives...I have used socket object to create clients...now I have the info of only IP address and port number of a client. I need to search other clients' hard drive for particular files that the client selects...
Is there any built-in java method or how can I develop a mechanism to do so?
please guys, if you do have a solution, let me know...
My deadline is approaching...
Thanx in advance for your time...
Razib
I have a project on peer-to-peer file transferring...Now I don't have any clue how I can use just the IP address of a computer to search for files in different drives...I have used socket object to create clients...now I have the info of only IP address and port number of a client. I need to search other clients' hard drive for particular files that the client selects...
Is there any built-in java method or how can I develop a mechanism to do so?
please guys, if you do have a solution, let me know...
My deadline is approaching...
Thanx in advance for your time...
Razib
•
•
Join Date: Jun 2004
Posts: 609
Reputation:
Solved Threads: 8
Hi Everyone,
Streams is the answer.
You have to have a folder(easier than searching the entire hd) then send a list and the other side gets it and do the appropriate transfer.
ps: You have to create your own format of data packets for transfer
Richard West
Streams is the answer.
You have to have a folder(easier than searching the entire hd) then send a list and the other side gets it and do the appropriate transfer.
ps: You have to create your own format of data packets for transfer
Richard West
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
hmm, I think he wants far more.
He seems to want to get a complete directory structure of someone's harddisk (with all files involved) from a remote location.
That is (happily) impossible.
What is possible is asking a program on the other computer (in a P2P environment you'd have programs running on both computers after all) for a specific file and have that program search for it.
He seems to want to get a complete directory structure of someone's harddisk (with all files involved) from a remote location.
That is (happily) impossible.
What is possible is asking a program on the other computer (in a P2P environment you'd have programs running on both computers after all) for a specific file and have that program search for it.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: Jun 2005
Posts: 3
Reputation:
Solved Threads: 0
Guys,
Let me make the point clear. I need to build a peer-to-peer file transfer system, where a client uses a program to enter a search string and the server checks the other clients' computer for that file. The security measures will be considered later. First I have to develop the basic system.
My point is now how I can search in other computers using only the socket information. Of course, the client whose PC is being searched, agrees to proceed by logging in to server.
It is one of our 3r year projects. Now I am asking for a feasible mechanism to implement the searching and then begin transferring. Can you help me with some idea or any hint that I can use...
Now one thing that came to my mind after reading your posts is that if I send every client a thread containing the search string, then the thread will search its localhost drives for a match..then it can send the result back to the server. Is it possible to implement? Then I have to develop a local searching mechanism and then worry about transferring the file. Will the thread be able to transfer the file to server or other PCs? :eek:
Thanks a lot guys for replying...Looking forward to hear you...
Razib
Let me make the point clear. I need to build a peer-to-peer file transfer system, where a client uses a program to enter a search string and the server checks the other clients' computer for that file. The security measures will be considered later. First I have to develop the basic system.
My point is now how I can search in other computers using only the socket information. Of course, the client whose PC is being searched, agrees to proceed by logging in to server.
It is one of our 3r year projects. Now I am asking for a feasible mechanism to implement the searching and then begin transferring. Can you help me with some idea or any hint that I can use...
Now one thing that came to my mind after reading your posts is that if I send every client a thread containing the search string, then the thread will search its localhost drives for a match..then it can send the result back to the server. Is it possible to implement? Then I have to develop a local searching mechanism and then worry about transferring the file. Will the thread be able to transfer the file to server or other PCs? :eek:
Thanks a lot guys for replying...Looking forward to hear you...
Razib
You don't do it like that.
Either you have each client send a complete description of their filesystems to the server when first signing up and later regular updates and do all the searching on the server OR (and that's the best way) you have the server marshall the requests and have each client perform the actual search and send the results back to the server for return to the client initiating the search.
Either you have each client send a complete description of their filesystems to the server when first signing up and later regular updates and do all the searching on the server OR (and that's the best way) you have the server marshall the requests and have each client perform the actual search and send the results back to the server for return to the client initiating the search.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
Similar Threads
- problems with reading random access line from a file (C++)
- save file names into char array (C)
- How to get Directory and File names (C++)
- how to read file names from a folder (C++)
- Turn Off File Names in Thumbnail View (Windows tips 'n' tweaks)
Other Threads in the Java Forum
- Previous Thread: Could someone help please and thankyou
- Next Thread: Please help
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary bluetooth character chat class classes client code component consumer csv database desktop draw eclipse error event exception fractal ftp game givemetehcodez graphics gui html ide image input integer j2me japplet java javaarraylist javaee javaprojects jmf jni jpanel julia linked linux list loop mac map method methods mobile netbeans newbie objects online oracle oriented panel print printf problem program programming project projects properties recursion replaydirector reporting researchinmotion robot rotatetext rsa scanner screen se server set size sms sort sql string swing template test threads time tree ubuntu windows working






