[DUG] Indy TidTCPServer question
David Moorhouse (DUG)
delphi at moorhouse.net.nz
Tue Feb 15 23:01:26 NZDT 2011
Hi Ross
It's up to you to implement a protocol (e.g. look at the http
protocol). Typically maintain some sort of header and payload.
The TCP layer will handle ensuring the messages are delivered, however
you package the file up, unlike UDP.
Hope this helps
D
On 15/02/11 22:29, Ross Levis wrote:
>
> I'm writing a idTCPClient & idTCPServer apps which as part of their
> functions will be to transfer some files. I'm using
> idTCPServer.WriteFile() and idTCPClient.Read(Stream) for this purpose
> and it's working well.
>
> My question is really based on a lack of understanding of TCP or how a
> plain idTCPServer handles data transfer.
>
> Should I be sending the file in small chunks and validating the data
> before sending the next chunk, or does idTCPServer do that for me.
> I'm thinking of how an FTP server is implemented which I believe sends
> data in small pieces and awaits feedback after each piece, and I think
> resends a piece if there is a problem.
>
> Cheers.
>
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20110215/78265a9a/attachment.html
More information about the Delphi
mailing list