Transport Layer Protocols

pcapkit.protocols.transport is collection of all protocols in transport layer, with detailed implementation and methods.

Base Protocol

pcapkit.protocols.transport.transport contains Transport, which is a base class for transport layer protocols, eg. TCP and UDP.

class pcapkit.protocols.transport.transport.Transport(file=None, length=None, **kwargs)[source]

Bases: pcapkit.protocols.protocol.Protocol

Abstract base class for transport layer protocol family.

__layer__ = 'Transport'

Layer of protocol.

_import_next_layer(proto, length=None)[source]

Import next layer extractor.

  • proto (str) – next layer protocol name

  • length (int) – valid (non-padding) length


instance of next layer

Return type


property layer

Protocol layer.

Return type