class documentation

class MultiWrapper: (source)

Constructor: MultiWrapper(objs)

Implements interfaces: twisted.mail.interfaces.IMessageSMTP

View In Hierarchy

A message receiver which delivers a single message to multiple other message receivers.

Method __init__ No summary
Method __str__ Build a string representation of this MultiWrapper instance.
Method connectionLost Inform the message receivers that the connection has been lost.
Method eomReceived Pass the end of message along to the message receivers.
Method lineReceived Pass a received line to the message receivers.
Instance Variable objs See __init__.
def __init__(self, objs): (source)
Parameters
objs:list of IMessage providerMessage receivers to which the incoming message should be directed.
def __str__(self) -> str: (source)

Build a string representation of this MultiWrapper instance.

Returns
bytesA string containing a list of the message receivers.
def connectionLost(self): (source)

Inform the message receivers that the connection has been lost.

def eomReceived(self): (source)

Pass the end of message along to the message receivers.

Returns
DeferredList whose successful results are bytes or NoneA deferred list which triggers when all of the message receivers have finished handling their end of message.
def lineReceived(self, line): (source)

Pass a received line to the message receivers.

Parameters
line:bytesA line of the message.