I'm currently writing a really basic server/client transfer application in Java to learn about sockets (text files only) but I'm having a few problems.
I've got to the stage where a file will transfer from the client to the sever, but if I try and send another file after the first one, it won't work. No errors, just doesn't seem to do anything. I have to quit the application and start it again to send the next file.
The code's quite hefty so I can't easily paste it in. I was really just wondering if there's anything obvious I don't know about with regard to sockets which could be causing this? I thought I'd found the solution when I came across "flushing" via google but it didn't seem to do the trick unfortunately
Any ideas?
I've got to the stage where a file will transfer from the client to the sever, but if I try and send another file after the first one, it won't work. No errors, just doesn't seem to do anything. I have to quit the application and start it again to send the next file.
The code's quite hefty so I can't easily paste it in. I was really just wondering if there's anything obvious I don't know about with regard to sockets which could be causing this? I thought I'd found the solution when I came across "flushing" via google but it didn't seem to do the trick unfortunately

Any ideas?