Embedded TCP/IP stack: fnet_tftp.h Source File

FNET

fnet_tftp.h
1 /**************************************************************************
2 *
3 * Copyright 2011-2016 by Andrey Butok. FNET Community.
4 * Copyright 2008-2010 by Andrey Butok. Freescale Semiconductor, Inc.
5 *
6 ***************************************************************************
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License"); you may
9 * not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 *
20 ***************************************************************************
21 *
22 * TFTP common API.
23 *
24 ***************************************************************************/
25 
26 #ifndef _FNET_TFTP_H_
27 
28 #define _FNET_TFTP_H_
29 
30 #if FNET_CFG_TFTP_CLN || FNET_CFG_TFTP_SRV || defined(__DOXYGEN__)
31 
38 /**************************************************************************/
46 #define FNET_TFTP_DATA_SIZE_MAX (512u)
47 
48 /**************************************************************************/
52 typedef enum
53 {
61 
62 
63 /**************************************************************************/
67 typedef enum
68 {
88 
91 #endif /* FNET_CFG_TFTP_CLN || FNET_CFG_TFTP_SRV */
92 
93 #endif /* _FNET_TFTP_H_ */
TFTP read request (PRQ). The TFTP client reads a file from the TFTP server.
Definition: fnet_tftp.h:54
Illegal TFTP operation.
Definition: fnet_tftp.h:79
Unknown transfer ID.
Definition: fnet_tftp.h:81
Not defined, see error message (if any).
Definition: fnet_tftp.h:69
TFTP write request (WRQ). The TFTP client writes a file to the TFTP server.
Definition: fnet_tftp.h:57
Disk full or allocation exceeded.
Definition: fnet_tftp.h:76
File already exists.
Definition: fnet_tftp.h:83
fnet_tftp_request_t
The TFTP request type. It defines a TFTP service behavior, if it will read or write a file from/to a ...
Definition: fnet_tftp.h:52
fnet_tftp_error_t
TFTP error codes indicating the nature of the error according to RFC 1350.
Definition: fnet_tftp.h:67

© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net