class documentation

A message receiver which adds a header and delivers a message to a file whose name includes the size of the message.

Method __init__ No summary
Method eomReceived At the end of message, rename the file holding the message to its final name concatenated with the size of the file.
Method lineReceived Write a line to the file.
Instance Variable finalName Undocumented
Instance Variable size The number of octets in the message.

Inherited from FileMessage:

Method connectionLost Delete the file holding the partially received message.
Instance Variable fp See __init__.
Instance Variable name See __init__.
def __init__(self, address, fp, *a, **kw): (source)
Parameters
address:bytesThe address of the message recipient.
fp:file-like objectThe file in which to store the message while it is being received.
*a:2-tuple of (0) bytes, (1) bytesPositional arguments for FileMessage.__init__.
**kw:dictKeyword arguments for FileMessage.__init__.
def eomReceived(self): (source)

At the end of message, rename the file holding the message to its final name concatenated with the size of the file.

Returns
Deferred which successfully results in bytesA deferred which returns the name of the file holding the message.
def lineReceived(self, line): (source)

Write a line to the file.

Parameters
line:bytesA received line.

The number of octets in the message.