Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
tftp.h File Reference

Zephyr TFTP Implementation. More...

#include <zephyr.h>
#include <net/socket.h>

Go to the source code of this file.

Data Structures

struct  tftpc
 

Macros

#define TFTPC_SUCCESS   0
 
#define TFTPC_DUPLICATE_DATA   -1
 
#define TFTPC_BUFFER_OVERFLOW   -2
 
#define TFTPC_UNKNOWN_FAILURE   -3
 
#define TFTPC_REMOTE_ERROR   -4
 
#define TFTPC_RETRIES_EXHAUSTED   -5
 

Functions

int tftp_get (struct sockaddr *server, struct tftpc *client, const char *remote_file, const char *mode)
 

Detailed Description

Zephyr TFTP Implementation.

Macro Definition Documentation

◆ TFTPC_BUFFER_OVERFLOW

#define TFTPC_BUFFER_OVERFLOW   -2

◆ TFTPC_DUPLICATE_DATA

#define TFTPC_DUPLICATE_DATA   -1

◆ TFTPC_REMOTE_ERROR

#define TFTPC_REMOTE_ERROR   -4

◆ TFTPC_RETRIES_EXHAUSTED

#define TFTPC_RETRIES_EXHAUSTED   -5

◆ TFTPC_SUCCESS

#define TFTPC_SUCCESS   0

◆ TFTPC_UNKNOWN_FAILURE

#define TFTPC_UNKNOWN_FAILURE   -3

Function Documentation

◆ tftp_get()

int tftp_get ( struct sockaddr server,
struct tftpc client,
const char *  remote_file,
const char *  mode 
)