<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Ross<br>
<br>
It's up to you to implement a protocol (e.g. look at the http
protocol). Typically maintain some sort of header and payload.<br>
<br>
The TCP layer will handle ensuring the messages are delivered,
however you package the file up, unlike UDP.<br>
<br>
Hope this helps<br>
<br>
D<br>
<br>
<br>
On 15/02/11 22:29, Ross Levis wrote:
<blockquote cite="mid:01a201cbccf2$dd7e8780$987b9680$@com"
type="cite">
<meta http-equiv="Context-Type" content="text/html;
charset=us-ascii">
<div>
<p><span>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. </span></p>
<p><span> </span></p>
<p><span>My question is really based on a lack of understanding
of TCP or how a plain idTCPServer handles data transfer. </span></p>
<p><span> </span></p>
<p><span>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. </span></p>
<p><span> </span></p>
<p><span>Cheers. </span></p>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe</pre>
</blockquote>
<br>
</body>
</html>