Security isn't the big thing here as it would be a kind of strictly internal file distribution between a central server and some other servers in the same network. No external access here.
The problem i really have is to do some simple filecopy via socket from one server to another. These are very small files, so buffering might also not be a problem.
Both informations are present on the sending server. I managed to send the filename, but i didn't managed to send the file-data right after it.
I did not found out correctly, how to tell the receiving side that the filename is done (guess it is sending an "end") and that now the data is coming. All of this should be done via tcp net sockets.
Doing this separately in dedicated connection it works, but not with a single connection.
Thorsten