Nut/OS  4.10.3
API Reference
ftpserv.c File Reference
#include <stdio.h>
#include <fcntl.h>
#include <io.h>
#include <dev/board.h>
#include <dev/pnut.h>
#include <dev/sbimmc.h>
#include <fs/phatfs.h>
#include <sys/confnet.h>
#include <sys/version.h>
#include <sys/heap.h>
#include <sys/thread.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <net/route.h>
#include <pro/dhcp.h>
#include <pro/ftpd.h>
#include <pro/wins.h>
#include <pro/sntp.h>
#include <pro/discover.h>
Include dependency graph for ftpserv.c:

Go to the source code of this file.

Defines

#define CC_STRING   "GCC"
#define DBG_BAUDRATE   115200
#define USE_DHCP
#define MY_MAC   { 0x00, 0x06, 0x98, 0x30, 0x00, 0x35 }
#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_NAME   "NONE"
#define MYTZ   -1
 Local timezone, -1 for Central Europe.
#define MYTIMED   "130.149.17.21"
 IP address of the host running a time daemon.

Functions

void FtpThread (void *arg)
void InitDebugDevice (void)
int main (void)

Define Documentation

#define CC_STRING   "GCC"
Id:
ftpserv.c 3538 2011-08-10 16:34:10Z haraldkipp
Examples:
ftpd/ftpserv.c.

Definition at line 77 of file ftpserv.c.

Referenced by main().

#define DBG_BAUDRATE   115200
Examples:
ftpd/ftpserv.c.

Definition at line 96 of file ftpserv.c.

Referenced by InitDebugDevice().

#define USE_DHCP

Definition at line 102 of file ftpserv.c.

#define MY_MAC   { 0x00, 0x06, 0x98, 0x30, 0x00, 0x35 }
#define MY_IPADDR   "192.168.192.35"
Examples:
ftpd/ftpserv.c, and httpd/httpserv.c.

Definition at line 123 of file ftpserv.c.

#define MY_IPMASK   "255.255.255.0"
Examples:
ftpd/ftpserv.c, and httpd/httpserv.c.

Definition at line 130 of file ftpserv.c.

#define MY_IPGATE   "192.168.192.1"
Examples:
ftpd/ftpserv.c, and httpd/httpserv.c.

Definition at line 137 of file ftpserv.c.

#define FTP_PORTNUM   21
Examples:
ftpd/ftpserv.c.

Definition at line 149 of file ftpserv.c.

#define FTPD_TIMEOUT   600000
Examples:
ftpd/ftpserv.c.

Definition at line 157 of file ftpserv.c.

#define TCPIP_BUFSIZ   5840
Examples:
ftpd/ftpserv.c.

Definition at line 162 of file ftpserv.c.

#define TCPIP_MSS   1460
Examples:
ftpd/ftpserv.c.

Definition at line 171 of file ftpserv.c.

#define FSDEV_NAME   "NONE"
Examples:
ftpd/ftpserv.c.

Definition at line 213 of file ftpserv.c.

Referenced by main().

#define MYTZ   -1

Local timezone, -1 for Central Europe.

Examples:
ftpd/ftpserv.c, and logtime/logtime.c.

Definition at line 218 of file ftpserv.c.

#define MYTIMED   "130.149.17.21"

IP address of the host running a time daemon.

Examples:
ftpd/ftpserv.c, and logtime/logtime.c.

Definition at line 222 of file ftpserv.c.


Function Documentation

void FtpThread ( void *  arg)
Examples:
ftpd/ftpserv.c.

Definition at line 297 of file ftpserv.c.

Referenced by main().

void InitDebugDevice ( void  )
Examples:
ftpd/ftpserv.c.

Definition at line 308 of file ftpserv.c.

References _fileno(), _ioctl(), DBG_BAUDRATE, DEV_CONSOLE, DEV_CONSOLE_NAME, freopen(), NutRegisterDevice(), stdout, and UART_SETSPEED.

Referenced by main().

Here is the call graph for this function: