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, Raw

This class implements FTP data channel transmission.

The layer base Application comes first, for layer == 'Application', then the parsing base Raw, which keeps the channel’s octets undissected. See Protocol Layer Placement.

Changed in version 1.5.0: Derives from Application as well as Raw, so its layer is 'Application', where it was None, and its __index__ became Application.__index__, raising IntError where it had raised UnsupportedCall (#2285).

property name: Literal['FTP_DATA']

Name of current protocol.

classmethod __index__()[source]

Numeral registry index of the protocol.

Return type:

int

Returns:

Numeral registry index of the protocol in IANA service names and port numbers: TCP port 20, the port of TCP.ftp_data as an int, which TCP.__proto__ dispatches here (The Registry Index).

Changed in version 1.6.0: Returns TCP port 20, where it raised IntError (#2627).

Footnotes