Embedded TCP/IP stack  4.7.0
fnet_tftp.h
1 /**************************************************************************
2 *
3 * Copyright 2008-2016 by Andrey Butok. FNET Community.
4 *
5 ***************************************************************************
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may
8 * not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 ***************************************************************************
20 *
21 * TFTP common API.
22 *
23 ***************************************************************************/
24 
25 #ifndef _FNET_TFTP_H_
26 
27 #define _FNET_TFTP_H_
28 
29 #if FNET_CFG_TFTP_CLN || FNET_CFG_TFTP_SRV || defined(__DOXYGEN__)
30 
37 /**************************************************************************/
45 #define FNET_TFTP_DATA_SIZE_MAX (512u)
46 
47 /**************************************************************************/
51 typedef enum
52 {
60 
61 
62 /**************************************************************************/
66 typedef enum
67 {
79 
82 #endif /* FNET_CFG_TFTP_CLN || FNET_CFG_TFTP_SRV */
83 
84 #endif /* _FNET_TFTP_H_ */
TFTP read request (PRQ). The TFTP client reads a file from the TFTP server.
Definition: fnet_tftp.h:53
Illegal TFTP operation.
Definition: fnet_tftp.h:74
Unknown transfer ID.
Definition: fnet_tftp.h:75
Not defined, see error message (if any).
Definition: fnet_tftp.h:68
TFTP write request (WRQ). The TFTP client writes a file to the TFTP server.
Definition: fnet_tftp.h:56
Disk full or allocation exceeded.
Definition: fnet_tftp.h:72
File already exists.
Definition: fnet_tftp.h:76
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:51
fnet_tftp_error_t
TFTP error codes indicating the nature of the error according to RFC 1350.
Definition: fnet_tftp.h:66

© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net