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

/opentcp/tftp/tftps.c File Reference


Detailed Description

Author:
Version:
1.0
Date:
7.10.2002
Bug:
Warning:
Todo:
OpenTCP implementation of TFTP server application. For interface functions declarations see /inet/tftp/tftps.h.

Definition in file tftps.c.

Go to the source code of this file.

Functions

INT8 tftps_init (void)
 Initializes TFTP server.


Variables

UINT8 tftpsapp_init = 0
struct {
tftps
 TFTP server state information.


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.


Variable Documentation

UINT8 tftpsapp_init = 0
 

Defines whether tftps_init has already been invoked or not

Definition at line 78 of file tftps.c.

Referenced by tftps_init().

struct { ... } tftps
 

tftps variable holds various information that the tftp server needs for proper operation. These include server state, socket handle, timer handle, remote IP address and port number of the host we're communicating with, retransmit counter and TFTP block number.

Referenced by tftps_init().


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