blob: 52f63bd9cc03dc6c7e582ef0bf15a5a229436b5d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef TFTPCORE_H
#define TFTPCORE_H
/** @file
*
* TFTP core functions
*
* This file provides functions that are common to the TFTP (rfc1350),
* TFTM (rfc2090) and MTFTP (PXE) protocols.
*
*/
#include "tftp.h"
extern int tftp_open ( struct tftp_state *state, const char *filename,
union tftp_any **reply, int multicast );
extern int tftp_process_opts ( struct tftp_state *state,
struct tftp_oack *oack );
extern int tftp_ack_nowait ( struct tftp_state *state );
extern int tftp_get ( struct tftp_state *state, long timeout,
union tftp_any **reply );
extern int tftp_ack ( struct tftp_state *state, union tftp_any **reply );
extern int tftp_error ( struct tftp_state *state, int errcode,
const char *errmsg );
extern void tftp_set_errno ( struct tftp_error *error );
#endif /* TFTPCORE_H */
|