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 | FtpService (void) |
void | FtpThread (void *arg) |
void | InitDebugDevice (void) |
int | InitEthernetDevice (void) |
int | main (void) |
#define CC_STRING "GCC" |
Revision 1.8 2006/09/05 12:26:35 haraldkipp Added support for SAM9 MMC. DHCP enabled by default.
Revision 1.7 2006/08/31 19:15:30 haraldkipp Dummy file system name added to SAM9260 to let it pass the compiler. The application will not yet run on this platform.
Revision 1.6 2006/07/26 11:22:55 haraldkipp Added support for AT91SAM7X-EK.
Revision 1.4 2006/01/22 17:34:38 haraldkipp Added support for Ethernut 3, PHAT file system and realtime clock.
Revision 1.3 2005/04/19 08:51:26 haraldkipp Warn if not Ethernut 2
Revision 1.2 2005/02/07 19:05:23 haraldkipp ATmega 103 compile errors fixed
Revision 1.1 2005/02/05 20:32:57 haraldkipp First release
Definition at line 108 of file ftpserv.c.
Referenced by main().
#define DBG_BAUDRATE 115200 |
Definition at line 127 of file ftpserv.c.
Referenced by InitDebugDevice().
#define MY_MAC { 0x00, 0x06, 0x98, 0x30, 0x00, 0x35 } |
Definition at line 147 of file ftpserv.c.
Referenced by InitEthernetDevice(), and main().
#define MY_IPADDR "192.168.192.35" |
Definition at line 154 of file ftpserv.c.
Referenced by InitEthernetDevice(), and main().
#define MY_IPMASK "255.255.255.0" |
Definition at line 161 of file ftpserv.c.
Referenced by InitEthernetDevice(), and main().
#define MY_IPGATE "192.168.192.1" |
Definition at line 168 of file ftpserv.c.
Referenced by InitEthernetDevice(), and main().
#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.
Definition at line 249 of file ftpserv.c.
Referenced by main().
#define MYTIMED "130.149.17.21" |
IP address of the host running a time daemon.
Definition at line 252 of file ftpserv.c.
Referenced by main().
void FtpService | ( | void | ) |
Definition at line 271 of file ftpserv.c.
References FTP_PORTNUM, FTPD_TIMEOUT, inet_ntoa(), NutFtpServerSession(), NutHeapAvailable(), NutTcpAccept(), NutTcpCloseSocket(), NutTcpCreateSocket(), NutTcpSetSockOpt(), printf, puts, SO_RCVBUF, SO_RCVTIMEO, tcp_socket::so_remote_addr, TCP_MAXSEG, TCPIP_BUFSIZ, and TCPIP_MSS.
Referenced by FtpThread(), and main().
void FtpThread | ( | void * | arg | ) |
Definition at line 324 of file ftpserv.c.
References FtpService().
Referenced by main().
void InitDebugDevice | ( | void | ) |
Definition at line 335 of file ftpserv.c.
References _fileno(), _ioctl(), DBG_BAUDRATE, DEV_DEBUG, DEV_DEBUG_NAME, freopen(), NutRegisterDevice(), stdout, and UART_SETSPEED.
Referenced by main().
int InitEthernetDevice | ( | void | ) |
Definition at line 349 of file ftpserv.c.
References DEV_ETHER, DEV_ETHER_NAME, inet_addr(), MY_IPADDR, MY_IPGATE, MY_IPMASK, MY_MAC, NutDhcpIfConfig(), NutIpRouteAdd(), NutNetIfConfig(), NutRegisterDevice(), printf, and puts.
Referenced by main().
int main | ( | void | ) |
Definition at line 479 of file ftpserv.c.
References _O_BINARY, _O_RDWR, _open(), CC_STRING, _CONFNET::cdn_ip_addr, _CONFNET::cdn_ip_mask, confnet, DISF_INITAL_ANN, FSDEV_NAME, FtpService(), FtpThread(), inet_ntoa(), InitDebugDevice(), InitEthernetDevice(), localtime(), NutIpRouteQuery(), NutRegisterDevice(), NutRegisterDiscovery(), NutRegisterFtpRoot(), NutThreadCreate(), NutVersionString(), NutWinsNameQuery(), printf, puts, time(), _tm::tm_hour, _tm::tm_mday, _tm::tm_min, _tm::tm_mon, _tm::tm_sec, and _tm::tm_year.