Nut/OS  4.10.3
API Reference
FTPSESSION Struct Reference

FTP session information structure. More...

#include <ftpd.h>

Collaboration diagram for FTPSESSION:

Data Fields

TCPSOCKETftp_sock
 Telnet socket of this session.
FILEftp_stream
 Stream associated to the Telnet socket.
char * ftp_cwd
 Current working directory for this session.
uint32_t ftp_data_ip
 Target IP for data transfer.
uint16_t ftp_data_port
 TCP port for data transfer.
uint16_t ftp_maxseg
 Maximum TCP segment size for data transfer.
reg_t ftp_login
 Login status.
reg_t ftp_tran_mode
 FTP data transfer mode.
reg_t ftp_passive
 FTP data transfer connection type.
char * ftp_renamesource
 Source file for renaming. NULL if no "RNFR" has been send or rename is finished.

Detailed Description

FTP session information structure.

Definition at line 79 of file ftpd.h.


Field Documentation

Telnet socket of this session.

Definition at line 81 of file ftpd.h.

Referenced by NutFtpOpenSession(), NutFtpProcessPassiv(), and NutFtpProcessPort().

Current working directory for this session.

Definition at line 85 of file ftpd.h.

Referenced by NutFtpCloseSession(), NutFtpOpenSession(), NutFtpProcessCwd(), NutFtpProcessPwd(), and NutFtpProcessRequest().

Target IP for data transfer.

Definition at line 87 of file ftpd.h.

Referenced by NutFtpDataConnect(), and NutFtpProcessPort().

TCP port for data transfer.

Definition at line 89 of file ftpd.h.

Referenced by NutFtpDataConnect(), NutFtpOpenSession(), and NutFtpProcessPort().

Maximum TCP segment size for data transfer.

Definition at line 91 of file ftpd.h.

Referenced by NutFtpDataConnect(), and NutFtpOpenSession().

Login status.

  • 0: Not logged in.
  • 1: Got user's name, but no password.
  • 2: Logged in.

Definition at line 98 of file ftpd.h.

Referenced by NutFtpProcessPass(), NutFtpProcessRequest(), and NutFtpProcessUser().

FTP data transfer mode.

  • 0: ASCII mode.
  • 1: Binary mode.

Definition at line 104 of file ftpd.h.

Referenced by NutFtpProcessType(), and NutFtpTransferFile().

FTP data transfer connection type.

  • 0: Active.
  • 1: Passive.

Definition at line 110 of file ftpd.h.

Referenced by NutFtpDataConnect(), and NutFtpProcessPassiv().

Source file for renaming. NULL if no "RNFR" has been send or rename is finished.

Definition at line 114 of file ftpd.h.

Referenced by NutFtpCloseSession(), NutFtpProcessRequest(), NutFtpRenameAction(), and NutFtpRenamePrepare().


The documentation for this struct was generated from the following file: