ReactOS
0.4.16-dev-1044-ga6558c0
tftp_client.h
Go to the documentation of this file.
1
8
/*
9
* Redistribution and use in source and binary forms, with or without
10
* modification,are permitted provided that the following conditions are met:
11
*
12
* 1. Redistributions of source code must retain the above copyright notice,
13
* this list of conditions and the following disclaimer.
14
* 2. Redistributions in binary form must reproduce the above copyright notice,
15
* this list of conditions and the following disclaimer in the documentation
16
* and/or other materials provided with the distribution.
17
* 3. The name of the author may not be used to endorse or promote products
18
* derived from this software without specific prior written permission.
19
*
20
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
21
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
22
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
23
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
25
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
*
31
* This file is part of the lwIP TCP/IP stack.
32
*
33
*/
34
35
#ifndef LWIP_HDR_APPS_TFTP_CLIENT_H
36
#define LWIP_HDR_APPS_TFTP_CLIENT_H
37
38
#include "
lwip/apps/tftp_common.h
"
39
40
enum
tftp_transfer_mode
{
41
TFTP_MODE_OCTET
,
42
TFTP_MODE_NETASCII
,
43
TFTP_MODE_BINARY
/* used in old versions only */
44
};
45
46
err_t
tftp_init_client
(
const
struct
tftp_context
*
ctx
);
47
err_t
tftp_get
(
void
*
handle
,
const
ip_addr_t
*
addr
,
u16_t
port
,
const
char
* fname,
enum
tftp_transfer_mode
mode
);
48
err_t
tftp_put
(
void
*
handle
,
const
ip_addr_t
*
addr
,
u16_t
port
,
const
char
* fname,
enum
tftp_transfer_mode
mode
);
49
50
#endif
/* LWIP_HDR_APPS_TFTP_CLIENT_H */
port
USHORT port
Definition:
uri.c:228
mode
GLenum mode
Definition:
glext.h:6217
addr
GLenum const GLvoid * addr
Definition:
glext.h:9621
u16_t
uint16_t u16_t
Definition:
arch.h:127
err_t
s8_t err_t
Definition:
err.h:96
ip_addr_t
ip6_addr_t ip_addr_t
Definition:
ip_addr.h:344
handle
Definition:
rpc_generic.c:61
tftp_context
Definition:
tftp_common.h:56
tftp_get
err_t tftp_get(void *handle, const ip_addr_t *addr, u16_t port, const char *fname, enum tftp_transfer_mode mode)
tftp_put
err_t tftp_put(void *handle, const ip_addr_t *addr, u16_t port, const char *fname, enum tftp_transfer_mode mode)
tftp_init_client
err_t tftp_init_client(const struct tftp_context *ctx)
tftp_transfer_mode
tftp_transfer_mode
Definition:
tftp_client.h:40
TFTP_MODE_NETASCII
@ TFTP_MODE_NETASCII
Definition:
tftp_client.h:42
TFTP_MODE_OCTET
@ TFTP_MODE_OCTET
Definition:
tftp_client.h:41
TFTP_MODE_BINARY
@ TFTP_MODE_BINARY
Definition:
tftp_client.h:43
tftp_common.h
Trivial File Transfer Protocol (RFC 1350)
ctx
Definition:
dbghelp_private.h:571
drivers
network
tcpip
lwip
src
include
lwip
apps
tftp_client.h
Generated on Sun Apr 27 2025 06:06:10 for ReactOS by
1.9.6