Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

/opentcp/include/inet/tftp/tftps.h File Reference


Detailed Description

Author:
Version:
1.0
Date:
7.10.2002
OpenTCP TFTP server protocol function declarations, constants, etc.

Definition in file tftps.h.

Go to the source code of this file.

Defines

#define TFTPS_SERVERPORT   69
 Default server port for TFTP server.

#define TFTPS_FILENAME_MAXLEN   20
 Maximum filename allowed by the TFTP server.

#define TFTPS_DEF_RETRIES   4
 Default number of retries of TFTP server.

#define TFTPS_TIMEOUT   20
 Timeout (in seconds) after which socket is deleted.


Functions

INT8 tftps_init (void)
 Initializes TFTP server.


Define Documentation

#define TFTPS_SERVERPORT   69
 

TFTP server will use this UDP port to listen for incoming traffic.

Definition at line 76 of file tftps.h.

Referenced by tftps_init().

#define TFTPS_FILENAME_MAXLEN   20
 

Maximum filename-length TFTP server is ready to process.

Definition at line 83 of file tftps.h.

#define TFTPS_DEF_RETRIES   4
 

Number of retries of resending the data before aborting.

Definition at line 90 of file tftps.h.


Function Documentation

INT8 tftps_init void   
 

Author:
Date:
19.07.2002
Returns:
  • -1 - Error
  • >=0 - OK, server intialized
This function should be called before the TFTP Server application is used to set the operating parameters of it

Definition at line 136 of file tftps.c.

References get_timer(), tftps, TFTPS_SERVERPORT, tftpsapp_init, udp_getsocket(), udp_open(), UDP_OPT_CHECK_CS, and UDP_OPT_SEND_CS.


Generated on Sun Aug 3 20:33:00 2003 for OpenTCP by doxygen1.2.18