Source code for pcapkit.protocols.data.transport.udp
# -*- coding: utf-8 -*-"""data model for UDP protocol"""fromtypingimportTYPE_CHECKINGfrompcapkit.corekit.infoclassimportinfo_finalfrompcapkit.protocols.data.protocolimportProtocolifTYPE_CHECKING:frompcapkit.const.reg.apptypeimportAppType__all__=['UDP']
[docs]@info_finalclassUDP(Protocol):"""Data model for UDP protocol."""#: Source port.srcport:'AppType'#: Destination port.dstport:'AppType'#: Length (header includes).len:'int'#: Checksum.checksum:'bytes'ifTYPE_CHECKING:def__init__(self,srcport:'AppType',dstport:'AppType',len:'int',checksum:'bytes')->'None':...# pylint: disable=unused-argument,super-init-not-called,multiple-statements,redefined-builtin