Source code for pcapkit.protocols.schema.application.ftp

# -*- coding: utf-8 -*-
# mypy: disable-error-code=assignment
"""header schema for file transfer protocol"""

from typing import TYPE_CHECKING

from pcapkit.corekit.fields.strings import BytesField
from pcapkit.protocols.schema.schema import Schema, schema_final

__all__ = ['FTP']


[docs] @schema_final class FTP(Schema): """Header schema for FTP packet.""" #: Packet data. data: 'bytes' = BytesField(lambda pkt: pkt['__length__']) if TYPE_CHECKING: def __init__(self, data: 'bytes') -> 'None': ...