Go to the latest version of this document.

# ``twisted`.`pair`.`raw`.`IRawPacketProtocol``

interface documentation

`class IRawPacketProtocol(Interface): (source)`

Known implementations: `twisted.pair.ip.IPProtocol`

View In Hierarchy

An interface for low-level protocols such as IP and ARP.

Method | `addProto` | Add a protocol on top of this one.
Method | `datagramReceived` | An IP datagram has been received. Parse and process it.

def addProto(num, proto): (source)

Add a protocol on top of this one.

def datagramReceived(data, partial, dest, source, protocol): (source)

An IP datagram has been received. Parse and process it.