FTP_DATA - FTP Data Channel¶
pcapkit.protocols.application.ftp_data.protocol contains
FTP_DATA only,
which implements an extractor for the data channel of File
Transfer Protocol (FTP) [*], whose octets it keeps undissected.
Added in version 1.5.0: Moved here from pcapkit.protocols.application.ftp.protocol, which keeps
FTP alone. The control and data
channels are dispatched separately – FTP at TCP port 21, the data channel
at port 20 – so each is a protocol of its own and gets its own module
(#2285).
- class pcapkit.protocols.application.ftp_data.protocol.FTP_DATA(file=None, length=None, **kwargs)[source]¶
Bases:
Application,RawThis class implements FTP data channel transmission.
The layer base
Applicationcomes first, forlayer == 'Application', then the parsing baseRaw, which keeps the channel’s octets undissected. See Protocol Layer Placement.Changed in version 1.5.0: Derives from
Applicationas well asRaw, so its layer is'Application', where it wasNone, and its__index__becameApplication.__index__, raisingIntErrorwhere it had raisedUnsupportedCall(#2285).- classmethod __index__()[source]¶
Numeral registry index of the protocol.
- Return type:
- Returns:
Numeral registry index of the protocol in IANA service names and port numbers: TCP port 20, the port of
TCP.ftp_dataas anint, whichTCP.__proto__dispatches here (The Registry Index).
Footnotes