Einzelnen Beitrag anzeigen

Benutzerbild von sx2008
sx2008

Registriert seit: 16. Feb 2008
Ort: Baden-Württemberg
2.332 Beiträge
 
Delphi 2007 Professional
 
#3

Re: How to avoid the transfer TCPServer TCPClient

  Alt 12. Jan 2010, 06:41
The receiver doesn't know where the file's data ends and the filename of the next file starts.
You have to send the length of each file.
Otherwise it's impossible to separate the TCP/IP datastream into different files.
Code:
filename<CR><LF>filelength<CR><LF>file content
fork me on Github
  Mit Zitat antworten Zitat