...
Initialize the TFTP server.
...
Files
...
tftp-s.h/tftp-s.c
...
Prototype
HTML Table | ||||
---|---|---|---|---|
| ||||
Table Row (tr) | ||||
Table Cell (td) | ||||
| ||||
Anchor | 1047931 | 1047931 | ||
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
HTML Tablecode | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| tr|||||||||||||||||||||
Anchor | 1047952 | 1047952 |
| ||||||||||||||||||
Table Cell (td) | |||||||||||||||||||||
|
| ||||||||||||||||||||
CPU_BOOLEANsuccess; Anchor | | 1048056 | 1048056 | /* TFTP server NOT initialized or started. */||||||||||||||||||
Anchor | 1047955 | 1047955 | success = TFTPs_Init();|||||||||||||||||||
Anchor | 1047956 | 1047956 | if (success != DEF_OK) {|||||||||||||||||||
Anchor | 1047957 | 1047957 | printf(“TFTP server initialization failed”);|||||||||||||||||||
Anchor | 1047958 | 1047958 | }|||||||||||||||||||
Table Row (tr) | |||||||||||||||||||||
Table Row (tr) | |||||||||||||||||||||
Table Row (tr) | |||||||||||||||||||||
Table Row (tr) | |||||||||||||||||||||
Table Row (tr) | |||||||||||||||||||||
Table Row (tr) |