Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Initialize the TFTP server.

...

Files

...

tftp-s.h/tftp-s.c

...

Prototype

HTML Table
classCode_Listing
Table Row (tr)
Table Cell (td)
rowspan5
Anchor
10479311047931
Code Block
          CPU_BOOLEAN  TFTPs_Init(
void);
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)

...

const TFTPs_CFG       *p_cfg,
                                  const TFTPs_TASK_CFG  *p_task_cfg,
                                        TFTPs_ERR       *p_err);

Arguments

p_cfg

Pointer to TFTPs Configuration object.

p_task_cfg

Pointer to TFTPs Task Configuration object.

p_err

Pointer to variable that will receive the return error code from this function :

TFTPs_ERR_NONE
TFTPs_ERR_CFG_INVALID_SOCK_FAMILY
...

Returned Values

DEF_OK,     if no error.
DEF_FAIL, otherwise.

...

...

Required Configuration

...

None.

...

Notes / Warnings

...

None.

...

Example Usage

tr /* TFTP server NOT initialized or started. */ success = TFTPs_Init(); if (success != DEF_OK) { printf(“TFTP server initialization failed”); }tr
  success;
                       /* TFTP server NOT initialized or started. */ 
          success = TFTPs_Init(&TFTPs_Cfg, &TFTPs_TaskCfg, &err_tftps);
          if (success != DEF_OK) {
              printf("TFTP server initialization failed");
          }
HTML Tablecode
classlanguageCode_Listingcpp
Anchor
10479521047952
linenumbers
Table Cell (td)
rowspan8
true
          CPU_BOOLEAN
success;
Anchor
10480561048056
Anchor
10479551047955
Anchor
10479561047956
Anchor
10479571047957
Anchor
10479581047958
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)