File nut/app/ftpd/ftpserv.c


Included Files


Preprocessor definitions

#define CC_STRING "AVRGCC"

#define DBG_BAUDRATE 115200

#define USE_DHCP

#define MY_MAC

#define MY_IPADDR "192.168.192.35"

#define MY_IPMASK "255.255.255.0"

#define MY_IPGATE "192.168.192.1"

#define FTP_PORTNUM 21

#define FTPD_TIMEOUT 600000

#define TCPIP_BUFSIZ 5840

#define TCPIP_MSS 1460

#define FSDEV devPnut

#define FSDEV_NAME "PNUT"

#define MYTZ -1

#define MYTIMED "130.149.17.21"


Global Function FtpThread()

void FtpThread ( void* arg )
Prototyped in: nut/app/ftpd/ftpserv.c
Calls: FtpService() nut/app/ftpd/ftpserv.c
Used in: NutAppMain() nut/app/ftpd/ftpserv.c

Global Function InitDebugDevice()

void InitDebugDevice ( void )
Calls: NutRegisterDevice(), _fileno(), _ioctl(), freopen()
Called by: NutAppMain() nut/app/ftpd/ftpserv.c

Global Function NutAppMain()

int NutAppMain ( void )
Calls: FtpService() nut/app/ftpd/ftpserv.c
  InitDebugDevice() nut/app/ftpd/ftpserv.c
  InitEthernetDevice() nut/app/ftpd/ftpserv.c
  InitTimeAndDate() nut/app/ftpd/ftpserv.c
  NutIpRouteQuery(), NutRegisterDevice(), NutRegisterFtpRoot(), NutSleep(), NutThreadCreate(), NutVersionString(), inet_ntoa(), localtime(), printf(), puts(), time()
References Functions: FtpThread() nut/app/ftpd/ftpserv.c

Local Function FtpService()

static void FtpService ( void )
Calls: NutFtpServerSession(), NutHeapRootAvailable(), NutTcpAccept(), NutTcpCloseSocket(), NutTcpCreateSocket(), NutTcpSetSockOpt(), inet_ntoa(), printf(), puts()
Called by: FtpThread() nut/app/ftpd/ftpserv.c
  NutAppMain() nut/app/ftpd/ftpserv.c

Local Function InitEthernetDevice()

static int InitEthernetDevice ( void )
Calls: NutDhcpIfConfig(), NutIpRouteAdd(), NutNetIfConfig(), NutRegisterDevice(), inet_addr(), printf(), puts()
Called by: NutAppMain() nut/app/ftpd/ftpserv.c

Local Function InitTimeAndDate()

static int InitTimeAndDate ( void )
Calls: QueryTimeServer() nut/app/ftpd/ftpserv.c
Called by: NutAppMain() nut/app/ftpd/ftpserv.c

Local Function QueryTimeServer()

static int QueryTimeServer ( void )
Calls: NutSNTPGetTime(), inet_addr(), printf(), puts(), stime()
Called by: InitTimeAndDate() nut/app/ftpd/ftpserv.c