<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.1">
</HEAD>
<BODY>
Hi,<BR>
&nbsp; I have a simple protocol listening on a port. I send it a text message (a filename)<BR>
and the protocol tries to stream back the bytes of the file. Mostly, this works<BR>
but in some cases, the receiving side receives less bytes than is written by:<BR>
<BR>
self.transport.write(bytes)<BR>
<BR>
I read the API which says it can receive less than expected bytes or messages. Why?<BR>
<BR>
So how can I reliably send a sequences of bytes via &quot;dataReceived&quot; in my protocol?<BR>
<BR>
Thanks for any help!<BR>
Darren
</BODY>
</HTML>