src/nettools/tftp/tftp6.c File Reference

The file implements the TFTP protocol over IPv6. More...


Functions

int Nt6TftpRecv (IP6N TftpIP, UINT32 scope_id, char *szFileName, char *FileBuffer, UINT32 *FileSize, UINT16 *pErrorCode)


Detailed Description

The file implements the TFTP protocol over IPv6.

NOTE: (C) Copyright 2008, Texas Instruments, Inc.

Function Documentation

int Nt6TftpRecv ( IP6N  TftpIP,
UINT32  scope_id,
char *  szFileName,
char *  FileBuffer,
UINT32 *  FileSize,
UINT16 *  pErrorCode 
)

Description
The function retreives a file using TFTP.

Parameters:
[in] TftpIP IPv6 Address of the Server.
[in] scope_id This is the scope id. If the IP Address of the server is Link Local then this needs to be populated to the device index for the interface on which the TFTP Server is present. For Global Addresses this is ignored.
[in] szFileName File Name to be retreived.
[in] FileBuffer Buffer in which the downloaded file is stored.
[in] FileSize Size of the buffer
[out] pErrorCode Size of the buffer
Return values:
Success - 1
File downloaded exceeds buffer - 0
Error - <0


Copyright 2009, Texas Instruments Incorporated