class documentation

A message receiver which delivers a message to a file.

Method __init__ No summary
Method connectionLost Delete the file holding the partially received message.
Method eomReceived At the end of message, rename the file holding the message to its final name.
Method lineReceived Write a received line to the file.
Instance Variable finalName See __init__.
Instance Variable fp See __init__.
Instance Variable name See __init__.
def __init__(self, fp, name, finalName): (source)
Parameters
fp:file-like objectThe file in which to store the message while it is being received.
name:bytesThe full path name of the temporary file.
finalName:bytesThe full path name that should be given to the file holding the message after it has been fully received.
def connectionLost(self): (source)

Delete the file holding the partially received message.

def eomReceived(self): (source)

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

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

Write a received line to the file.

Parameters
line:bytesA received line.