You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tftpcore.h 838B

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