class documentation

class EthernetRecordingProtocol(EthernetProtocol): (source)

View In Hierarchy

A protocol which merely records the datagrams delivered to it.

Method datagramReceived Called when a datagram is received.
Method startProtocol Called when a transport is connected to this protocol.
Instance Variable received Undocumented

Inherited from EthernetProtocol:

Method __init__ Undocumented
Method addProto Add an IRawPacketProtocol protocol
Instance Variable etherProtos Undocumented

Inherited from AbstractDatagramProtocol (via EthernetProtocol):

Method __getstate__ Undocumented
Method doStart Make sure startProtocol is called.
Method doStop Make sure stopProtocol is called.
Method makeConnection Make a connection to a transport and a server.
Method stopProtocol Called when the transport is disconnected.
Class Variable noisy Undocumented
Instance Variable numPorts Undocumented
Instance Variable transport Undocumented
def datagramReceived(self, datagram, partial=False): (source)

Called when a datagram is received.

Parameters
datagramthe bytes received from the transport.
partialUndocumented
addrtuple of source of datagram.
def startProtocol(self): (source)

Called when a transport is connected to this protocol.

Will only be called once, even if multiple ports are connected.

received: list = (source)

Undocumented