Elise Daans

Greenhorn
+ Follow
since Dec 14, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Elise Daans

Tx for you reply.
Now i made a list of what i should do to make it work
- server waits for a connection on a certain port
- client tries to connect on server
- server acceps connection from client
- (on the client is a directory selected) de name and size of every file will be send to the server
- server checkes whenever the filename + size already is in its database (that contains all file-information on the server)
- if yes? server just goes to the next file
- if no? server ask client to upload that file (which is not on the server)
- when the whole list is done .. server cloes the connection with the client.

Now i've got the following guestion: How can I get the filenames out of the directory i selected on my client? i have to "read" a filename and send this filename to the server but i don't know how to get that information out of the dir.

Hopefully someone knows a solution to this problem

Many thanks,

Elise
19 years ago
Hello!

for school i have to make a network application in java.
i once made a java-chatbox with sockets but just sending strings is alot easyer then what this is all about.

what do i have to make?
client: everyone in the network has a small gui where he can set the right path to his dir with movies and his dit with mp3's.
When the client starts it connects to the server

server: accepts connection from client
checks whenever the client has new movie or new mp3 (so it is not already on the server)
if client has something new.. client uploads the new file to the server.

Please can anyone give me a hand with this? i don't really know how to start with it.

many thanks in advance

Elise Daans (belgium)
19 years ago